public function OptionAttributesHTML() { $attributes = $this->optionAttributes; $attributes['class'] = isset($attributes['class']) ? $attributes['class'] . implode(' ', $this->optionClasses) : implode(' ', $this->optionClasses); if ($this->original()->getAttribute('required')) { $attributes['required'] = $this->up()->getAttribute('required'); } return FormBootstrapper::get_attributes_for_tag($attributes, ['disabled', 'checked', 'selected', 'value', 'type', 'name', 'id', 'class']); }