public static function WebformButtonsOther::processWebformOther in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_jqueryui_buttons/src/Element/WebformButtonsOther.php \Drupal\webform_jqueryui_buttons\Element\WebformButtonsOther::processWebformOther()
Processes an 'other' element.
See select list webform element for select list properties.
Overrides WebformOtherBase::processWebformOther
See also
\Drupal\Core\Render\Element\Select
File
- modules/
webform_jqueryui_buttons/ src/ Element/ WebformButtonsOther.php, line 27
Class
- WebformButtonsOther
- Provides a webform element for buttons with an other option.
Namespace
Drupal\webform_jqueryui_buttons\ElementCode
public static function processWebformOther(&$element, FormStateInterface $form_state, &$complete_form) {
// Attach element buttons before other handler.
$element['#attached']['library'][] = 'webform/webform.element.buttons';
$element['#wrapper_attributes']['class'][] = "js-webform-buttons";
$element['#wrapper_attributes']['class'][] = "webform-buttons";
$element = parent::processWebformOther($element, $form_state, $complete_form);
return $element;
}