public function TitleResolver::__construct

public TitleResolver::__construct(ControllerResolverInterface $controller_resolver, TranslationInterface $string_translation)

Constructs a TitleResolver instance.

Parameters

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

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

File

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

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) {
  $this->controllerResolver = $controller_resolver;
  $this->stringTranslation = $string_translation;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Controller!TitleResolver.php/function/TitleResolver::__construct/8.1.x