Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php \Drupal\Core\Form\FormErrorHandlerInterface
  2. 9 core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php \Drupal\Core\Form\FormErrorHandlerInterface

Provides an interface for handling form errors.

Hierarchy

Expanded class hierarchy of FormErrorHandlerInterface

All classes that implement FormErrorHandlerInterface

File

core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php, line 8

Namespace

Drupal\Core\Form
View source
interface FormErrorHandlerInterface {

  /**
   * Handles form errors after form validation.
   *
   * @param array $form
   *   An associative array containing the structure of the form.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The current state of the form.
   *
   * @return $this
   */
  public function handleFormErrors(array &$form, FormStateInterface $form_state);

}

Members

Namesort descending Modifiers Type Description Overrides
FormErrorHandlerInterface::handleFormErrors public function Handles form errors after form validation.