function Actions::processActions
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Render/Element/Actions.php \Drupal\Core\Render\Element\Actions::processActions()
- 10 core/lib/Drupal/Core/Render/Element/Actions.php \Drupal\Core\Render\Element\Actions::processActions()
- 11.x core/lib/Drupal/Core/Render/Element/Actions.php \Drupal\Core\Render\Element\Actions::processActions()
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 60
Class
- Actions
- Provides a wrapper element to group one or more buttons in a form.
Namespace
Drupal\Core\Render\ElementCode
public static function processActions(&$element, FormStateInterface $form_state, &$complete_form) {
$element['#attributes']['class'][] = 'form-actions';
return $element;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.