You are here

public function TitleResolver::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Controller/TitleResolver.php \Drupal\Core\Controller\TitleResolver::__construct()

Constructs a TitleResolver instance.

Parameters

\Drupal\Core\Controller\ControllerResolverInterface $controller_resolver: The controller resolver.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.

\Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface $argument_resolver: The argument resolver.

File

core/lib/Drupal/Core/Controller/TitleResolver.php, line 41

Class

TitleResolver
Provides the default implementation of the title resolver interface.

Namespace

Drupal\Core\Controller

Code

public function __construct(ControllerResolverInterface $controller_resolver, TranslationInterface $string_translation, ArgumentResolverInterface $argument_resolver) {
  $this->controllerResolver = $controller_resolver;
  $this->stringTranslation = $string_translation;
  $this->argumentResolver = $argument_resolver;
}