interface FormErrorHandlerInterface
Same name in other branches
- 9 core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php \Drupal\Core\Form\FormErrorHandlerInterface
- 8.9.x core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php \Drupal\Core\Form\FormErrorHandlerInterface
- 11.x 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
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
FormErrorHandlerInterface::handleFormErrors | public | function | Handles form errors after form validation. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.