interface FormErrorHandlerInterface in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php \Drupal\Core\Form\FormErrorHandlerInterface
- 10 core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php \Drupal\Core\Form\FormErrorHandlerInterface
Provides an interface for handling form errors.
Hierarchy
- interface \Drupal\Core\Form\FormErrorHandlerInterface
Expanded class hierarchy of FormErrorHandlerInterface
All classes that implement FormErrorHandlerInterface
File
- core/
lib/ Drupal/ Core/ Form/ FormErrorHandlerInterface.php, line 8
Namespace
Drupal\Core\FormView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormErrorHandlerInterface:: |
public | function | Handles form errors after form validation. | 1 |