/** * Constructor. * * @param \Drupal\Core\ContentNegotiation $negotiation * The content negotiation library to use to determine the correct response * format. * @param \Drupal\Core\Controller\TitleResolverInterface $title_resolver * The title resolver. * @param \Drupal\Core\Page\HtmlPageRendererInterface $renderer * The page renderer. * @param \Drupal\Core\Page\HtmlFragmentRendererInterface $fragment_renderer * The fragment rendering service. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * The url generator. * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator */ public function __construct(ContentNegotiation $negotiation, TitleResolverInterface $title_resolver, HtmlPageRendererInterface $renderer, HtmlFragmentRendererInterface $fragment_renderer, TranslationInterface $string_translation, UrlGeneratorInterface $url_generator) { parent::__construct($title_resolver, $url_generator); $this->negotiation = $negotiation; $this->htmlPageRenderer = $renderer; $this->fragmentRenderer = $fragment_renderer; $this->stringTranslation = $string_translation; }
/** * Constructs a new HtmlPageController. * * @param \Drupal\Core\Controller\ControllerResolverInterface $controller_resolver * The controller resolver. * @param \Drupal\Core\Controller\TitleResolverInterface $title_resolver * The title resolver. * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator * The url generator. */ public function __construct(ControllerResolverInterface $controller_resolver, TitleResolverInterface $title_resolver, UrlGeneratorInterface $url_generator) { parent::__construct($title_resolver, $url_generator); $this->controllerResolver = $controller_resolver; }
/** * Constructs a new HtmlPageController. * * @param \Drupal\Core\Controller\ControllerResolverInterface $controller_resolver * The controller resolver. * @param \Drupal\Core\Controller\TitleResolverInterface $title_resolver * The title resolver. * @param \Drupal\Core\Page\RenderHtmlRendererInterface $render_html_renderer * The render array to HTML fragment renderer. */ public function __construct(ControllerResolverInterface $controller_resolver, TitleResolverInterface $title_resolver, RenderHtmlRendererInterface $render_html_renderer) { parent::__construct($title_resolver, $render_html_renderer); $this->controllerResolver = $controller_resolver; }