function public static function Actions::processElement

8.x-3.x Actions.php public static Actions::processElement(Element $element, FormStateInterface $form_state, array &$complete_form)

Process a specific form element.

Parameters

\Drupal\bootstrap\Utility\Element $element: The element object.

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

array $complete_form: The complete form structure.

Overrides ProcessBase::processElement

Class

Actions
Processes the "actions" element.

Namespace

Drupal\bootstrap\Plugin\Process

Source src/Plugin/Process/Actions.php (line 20)

public static function processElement(Element $element, FormStateInterface $form_state, array &$complete_form) {
  foreach ($element->children() as $child) {
    if ($child->isPropertyEmpty('icon')) {
      $child->setIcon();
    }
  }
}