Button::processButton
public static function Button::processButton
public static Button::processButton(&$element, FormStateInterface $form_state, &$complete_form)
Processes a form button element.
File
- core/lib/Drupal/Core/Render/Element/Button.php, line 60
Class
- Button
- Provides an action button form element.
Namespace
Drupal\Core\Render\ElementCode
public static function processButton(&$element, FormStateInterface $form_state, &$complete_form) { // If this is a button intentionally allowing incomplete form submission // (e.g., a "Previous" or "Add another item" button), then also skip // client-side validation. if (isset($element['#limit_validation_errors']) && $element['#limit_validation_errors'] !== FALSE) { $element['#attributes']['formnovalidate'] = 'formnovalidate'; } return $element; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!Button.php/function/Button::processButton/8.1.x