2020-06-04 10:05:45 +02:00
|
|
|
<?php
|
|
|
|
$controlParams = [
|
|
|
|
'options' => $fieldData['options'],
|
2021-06-30 12:22:22 +02:00
|
|
|
'empty' => $fieldData['empty'] ?? false,
|
2021-11-26 10:51:58 +01:00
|
|
|
'value' => $fieldData['value'] ?? null,
|
2021-10-08 10:27:40 +02:00
|
|
|
'multiple' => $fieldData['multiple'] ?? false,
|
|
|
|
'disabled' => $fieldData['disabled'] ?? false,
|
2022-01-27 21:09:32 +01:00
|
|
|
'class' => ($fieldData['class'] ?? '') . ' formDropdown form-select',
|
|
|
|
'default' => ($fieldData['default'] ?? null)
|
2020-06-04 10:05:45 +02:00
|
|
|
];
|
2021-10-25 16:20:36 +02:00
|
|
|
if (!empty($fieldData['label'])) {
|
|
|
|
$controlParams['label'] = $fieldData['label'];
|
|
|
|
}
|
2020-06-04 10:05:45 +02:00
|
|
|
echo $this->FormFieldMassage->prepareFormElement($this->Form, $controlParams, $fieldData);
|