4 * Contains \Drupal\bootstrap\Plugin\Process\ProcessInterface.
7 namespace Drupal\bootstrap\Plugin\Process;
9 use Drupal\Core\Form\FormStateInterface;
12 * Defines the interface for an object oriented process plugin.
14 * @ingroup plugins_process
16 interface ProcessInterface {
19 * Process a specific form element type.
21 * Implementations of this method should check to see if the element has a
22 * property named #bootstrap_ignore_process and check if it is set to TRUE.
23 * If it is, the method should immediately return with the unaltered element.
25 * @param array $element
26 * The element render array.
27 * @param \Drupal\Core\Form\FormStateInterface $form_state
28 * The current state of the form.
29 * @param array $complete_form
30 * The complete form structure.
33 * The altered element array.
35 * @see \Drupal\bootstrap\Plugin\Alter\ElementInfo::alter
37 public static function process(array $element, FormStateInterface $form_state, array &$complete_form);