Provides validation of form submissions.
Hierarchy
- class \Drupal\Core\Form\FormValidator implements FormValidatorInterface uses StringTranslationTrait
File
- core/lib/Drupal/Core/Form/FormValidator.php, line 17
Namespace
Drupal\Core\Form
Members
Name | Modifiers | Type | Description |
---|---|---|---|
FormValidator::$csrfToken | protected | property | The CSRF token generator to validate the form token. |
FormValidator::$formErrorHandler | protected | property | The form error handler. |
FormValidator::$logger | protected | property | A logger instance. |
FormValidator::$requestStack | protected | property | The request stack. |
FormValidator::determineLimitValidationErrors | protected | function | Determines if validation errors should be limited. |
FormValidator::doValidateForm | protected | function | Performs validation on form elements. |
FormValidator::executeValidateHandlers | public | function | Executes custom validation handlers for a given form. Overrides FormValidatorInterface::executeValidateHandlers |
FormValidator::finalizeValidation | protected | function | Finalizes validation. |
FormValidator::handleErrorsWithLimitedValidation | protected | function | Handles validation errors for forms with limited validation. |
FormValidator::performRequiredValidation | protected | function | Performs validation of elements that are not subject to limited validation. |
FormValidator::setInvalidTokenError | public | function | Sets a form_token error on the given form state. Overrides FormValidatorInterface::setInvalidTokenError |
FormValidator::validateForm | public | function | Validates user-submitted form data in the $form_state. Overrides FormValidatorInterface::validateForm |
FormValidator::__construct | public | function | Constructs a new FormValidator. |
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. |
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. |
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. |
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. |
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. |
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. |
Please login to continue.