Loading form_options_attributes.module +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ function form_options_attributes_element_info_alter(array &$info) { function form_options_attributes_preprocess_form_options_attributes__select__options_attributes(&$variables) { $element = $variables['element']; Element::setAttributes($element, ['id', 'name', 'size']); RenderElement::setAttributes($element, ['form-select']); RenderElement::setAttributes($element, $variables['attributes']['class']); $variables['attributes'] = $element['#attributes']; $variables['options'] = form_select_options($element); Loading Loading
form_options_attributes.module +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ function form_options_attributes_element_info_alter(array &$info) { function form_options_attributes_preprocess_form_options_attributes__select__options_attributes(&$variables) { $element = $variables['element']; Element::setAttributes($element, ['id', 'name', 'size']); RenderElement::setAttributes($element, ['form-select']); RenderElement::setAttributes($element, $variables['attributes']['class']); $variables['attributes'] = $element['#attributes']; $variables['options'] = form_select_options($element); Loading