FormErrorHandlerInterface.php 497 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Drupal\Core\Form;
  3. /**
  4. * Provides an interface for handling form errors.
  5. */
  6. interface FormErrorHandlerInterface {
  7. /**
  8. * Handles form errors after form validation.
  9. *
  10. * @param array $form
  11. * An associative array containing the structure of the form.
  12. * @param \Drupal\Core\Form\FormStateInterface $form_state
  13. * The current state of the form.
  14. *
  15. * @return $this
  16. */
  17. public function handleFormErrors(array &$form, FormStateInterface $form_state);
  18. }