interface FormErrorHandlerInterface

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php \Drupal\Core\Form\FormErrorHandlerInterface
  2. 8.9.x core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php \Drupal\Core\Form\FormErrorHandlerInterface
  3. 10 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

Title Sort descending Modifiers Object type Summary Overrides
FormErrorHandlerInterface::handleFormErrors public function Handles form errors after form validation. 1

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.