Handles form errors.
Hierarchy
- class \Drupal\Core\Form\FormErrorHandler implements FormErrorHandlerInterface
File
- core/lib/Drupal/Core/Form/FormErrorHandler.php, line 10
Namespace
Drupal\Core\Form
Members
| Name | Modifiers | Type | Description |
|---|---|---|---|
| FormErrorHandler::displayErrorMessages | protected | function | Loops through and displays all form errors. |
| FormErrorHandler::drupalSetMessage | protected | function | Wraps drupal_set_message(). |
| FormErrorHandler::handleFormErrors | public | function | Handles form errors after form validation. Overrides FormErrorHandlerInterface::handleFormErrors |
| FormErrorHandler::setElementErrorsFromFormState | protected | function | Stores the errors of each element directly on the element. |
Please login to continue.