class FormErrorHandler
Handles form errors.
Hierarchy
- class \Drupal\Core\Form\FormErrorHandler implements FormErrorHandlerInterface
File
- core/lib/Drupal/Core/Form/FormErrorHandler.php, line 10
Namespace
Drupal\Core\FormMembers
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. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!FormErrorHandler.php/class/FormErrorHandler/8.1.x