file ProcessInterface.php

Namespace

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

Interfaces

Name Description
ProcessInterface Defines the interface for an object oriented process plugin.