public static function Actions::processActions

public static Actions::processActions(&$element, FormStateInterface $form_state, &$complete_form)

Processes a form actions container element.

Parameters

array $element: An associative array containing the properties and children of the form actions container.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

array $complete_form: The complete form structure.

Return value

array The processed element.

File

core/lib/Drupal/Core/Render/Element/Actions.php, line 59

Class

Actions
Provides a wrapper element to group one or more buttons in a form.

Namespace

Drupal\Core\Render\Element

Code

public static function processActions(&$element, FormStateInterface $form_state, &$complete_form) {
  $element['#attributes']['class'][] = 'form-actions';
  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!Actions.php/function/Actions::processActions/8.1.x