Actions.php in Express 8
Contains \Drupal\bootstrap\Plugin\Process\Actions.
Namespace
Drupal\bootstrap\Plugin\ProcessFile
themes/contrib/bootstrap/src/Plugin/Process/Actions.phpView source
<?php
/**
* @file
* Contains \Drupal\bootstrap\Plugin\Process\Actions.
*/
namespace Drupal\bootstrap\Plugin\Process;
use Drupal\bootstrap\Annotation\BootstrapProcess;
use Drupal\bootstrap\Utility\Element;
use Drupal\Core\Form\FormStateInterface;
/**
* Processes the "actions" element.
*
* @ingroup plugins_process
*
* @BootstrapProcess("actions")
*/
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();
}
}
}
}