You are here

public function FormErrorHandler::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 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_errors

Code

public function __construct(TranslationInterface $string_translation, RendererInterface $renderer, MessengerInterface $messenger) {
  $this->stringTranslation = $string_translation;
  $this->renderer = $renderer;
  $this->messenger = $messenger;
}