15 lines
613 B
PHP
15 lines
613 B
PHP
<?php
|
|
$controlParams = [
|
|
'options' => $fieldData['options'],
|
|
'empty' => $fieldData['empty'] ?? false,
|
|
'value' => $fieldData['value'] ?? null,
|
|
'multiple' => $fieldData['multiple'] ?? false,
|
|
'disabled' => $fieldData['disabled'] ?? false,
|
|
'class' => ($fieldData['class'] ?? '') . ' formDropdown form-select',
|
|
'default' => ($fieldData['default'] ?? null)
|
|
];
|
|
if (!empty($fieldData['label'])) {
|
|
$controlParams['label'] = $fieldData['label'];
|
|
}
|
|
echo $this->FormFieldMassage->prepareFormElement($this->Form, $controlParams, $fieldData);
|