WebformButtonsOther.php in Webform 8.5
File
modules/webform_jqueryui_buttons/src/Element/WebformButtonsOther.php
View source
<?php
namespace Drupal\webform_jqueryui_buttons\Element;
use Drupal\Core\Form\FormStateInterface;
use Drupal\webform\Element\WebformOtherBase;
class WebformButtonsOther extends WebformOtherBase {
protected static $type = 'webform_buttons';
public static function processWebformOther(&$element, FormStateInterface $form_state, &$complete_form) {
$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;
}
}