
| Current Path : /var/www/html/wirtschaftsclub.web-klick.de/themes/bootstrap/src/Plugin/Process/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/wirtschaftsclub.web-klick.de/themes/bootstrap/src/Plugin/Process/ProcessBase.php |
<?php
namespace Drupal\bootstrap\Plugin\Process;
use Drupal\bootstrap\Plugin\PluginBase;
use Drupal\bootstrap\Utility\Element;
use Drupal\Core\Form\FormStateInterface;
/**
* Base process class used to process elements.
*
* @ingroup plugins_process
*/
class ProcessBase extends PluginBase implements ProcessInterface {
/**
* {@inheritdoc}
*/
public static function process(array $element, FormStateInterface $form_state, array &$complete_form) {
if (!empty($element['#bootstrap_ignore_process'])) {
return $element;
}
static::processElement(Element::create($element, $form_state), $form_state, $complete_form);
return $element;
}
/**
* Process a specific form element.
*
* @param \Drupal\bootstrap\Utility\Element $element
* The element object.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
* @param array $complete_form
* The complete form structure.
*
* @see \Drupal\bootstrap\Plugin\Process\ProcessBase::process()
* @see \Drupal\bootstrap\Plugin\Alter\ElementInfo::alter()
*/
public static function processElement(Element $element, FormStateInterface $form_state, array &$complete_form) {}
}