function FormErrorHandler::__construct
Same name in other branches
- 9 core/modules/inline_form_errors/src/FormErrorHandler.php \Drupal\inline_form_errors\FormErrorHandler::__construct()
- 8.9.x core/modules/inline_form_errors/src/FormErrorHandler.php \Drupal\inline_form_errors\FormErrorHandler::__construct()
- 10 core/modules/inline_form_errors/src/FormErrorHandler.php \Drupal\inline_form_errors\FormErrorHandler::__construct()
Constructs a new FormErrorHandler.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
File
-
core/
modules/ inline_form_errors/ src/ FormErrorHandler.php, line 47
Class
- FormErrorHandler
- Produces inline form errors.
Namespace
Drupal\inline_form_errorsCode
public function __construct(TranslationInterface $string_translation, RendererInterface $renderer, MessengerInterface $messenger) {
$this->stringTranslation = $string_translation;
$this->renderer = $renderer;
$this->messenger = $messenger;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.