function FormValidator::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Form/FormValidator.php \Drupal\Core\Form\FormValidator::__construct()
  2. 10 core/lib/Drupal/Core/Form/FormValidator.php \Drupal\Core\Form\FormValidator::__construct()
  3. 9 core/lib/Drupal/Core/Form/FormValidator.php \Drupal\Core\Form\FormValidator::__construct()
  4. 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\Form

Code

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.