public function TitleResolver::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\ControllerCode
public function __construct(ControllerResolverInterface $controller_resolver, TranslationInterface $string_translation, ArgumentResolverInterface $argument_resolver) {
$this->controllerResolver = $controller_resolver;
$this->stringTranslation = $string_translation;
$this->argumentResolver = $argument_resolver;
}