You are here

public function FormErrorHandler::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Utility\LinkGeneratorInterface $link_generator: The link generation service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

File

core/modules/inline_form_errors/src/FormErrorHandler.php, line 46
Contains \Drupal\inline_form_errors\FormErrorHandler.

Class

FormErrorHandler
Produces inline form errors.

Namespace

Drupal\inline_form_errors

Code

public function __construct(TranslationInterface $string_translation, LinkGeneratorInterface $link_generator, RendererInterface $renderer) {
  $this->stringTranslation = $string_translation;
  $this->linkGenerator = $link_generator;
  $this->renderer = $renderer;
}