HtmlRenderer::__construct

public HtmlRenderer::__construct(TitleResolverInterface $title_resolver, PluginManagerInterface $display_variant_manager, EventDispatcherInterface $event_dispatcher, ModuleHandlerInterface $module_handler, RendererInterface $renderer, RenderCacheInterface $render_cache, array $renderer_config)

Constructs a new HtmlRenderer.

Parameters

\Drupal\Core\Controller\TitleResolverInterface $title_resolver: The title resolver.

\Drupal\Component\Plugin\PluginManagerInterface $display_variant_manager: The display variant manager.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

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

\Drupal\Core\Render\RenderCacheInterface $render_cache: The render cache service.

array $renderer_config: The renderer configuration array.

File

core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php, line 101

Class

HtmlRenderer
Default main content renderer for HTML requests.

Namespace

Drupal\Core\Render\MainContent

Code

public function __construct(TitleResolverInterface $title_resolver, PluginManagerInterface $display_variant_manager, EventDispatcherInterface $event_dispatcher, ModuleHandlerInterface $module_handler, RendererInterface $renderer, RenderCacheInterface $render_cache, array $renderer_config) {
  $this->titleResolver = $title_resolver;
  $this->displayVariantManager = $display_variant_manager;
  $this->eventDispatcher = $event_dispatcher;
  $this->moduleHandler = $module_handler;
  $this->renderer = $renderer;
  $this->renderCache = $render_cache;
  $this->rendererConfig = $renderer_config;
}
doc_Drupal
2016-10-29 09:18:49
Comments
Leave a Comment

Please login to continue.