class Actions

Processes the "actions" element.

Plugin annotation

@BootstrapProcess("actions")

Hierarchy

Expanded class hierarchy of Actions

Related topics

Namespace

Drupal\bootstrap\Plugin\Process
Source
class Actions extends ProcessBase implements ProcessInterface {

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

}

Members

Contains filters are case sensitive
Name Modifiers Type Description
Actions::processElement public static function Process a specific form element. Overrides ProcessBase::processElement
PluginBase::$theme protected property The currently set theme object.
PluginBase::__construct public function
ProcessBase::process public static function Process a specific form element type. Overrides ProcessInterface::process