function FormValidator::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Form/FormValidator.php \Drupal\Core\Form\FormValidator::__construct()
- 10 core/lib/Drupal/Core/Form/FormValidator.php \Drupal\Core\Form\FormValidator::__construct()
- 9 core/lib/Drupal/Core/Form/FormValidator.php \Drupal\Core\Form\FormValidator::__construct()
- 8.9.x core/lib/Drupal/Core/Form/FormValidator.php \Drupal\Core\Form\FormValidator::__construct()
File
-
core/
lib/ Drupal/ Core/ Form/ FormValidator.php, line 21
Class
- FormValidator
- Provides validation of form submissions.
Namespace
Drupal\Core\FormCode
public function __construct(protected RequestStack $requestStack, TranslationInterface $string_translation, protected CsrfTokenGenerator $csrfToken, protected LoggerInterface $logger, protected FormErrorHandlerInterface $formErrorHandler, protected CallableResolver $callableResolver) {
$this->stringTranslation = $string_translation;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.