function HtmlResponseAttachmentsProcessor::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::__construct()
  2. 10 core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::__construct()
  3. 11.x core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::__construct()

Constructs a HtmlResponseAttachmentsProcessor object.

Parameters

\Drupal\Core\Asset\AssetResolverInterface $asset_resolver: An asset resolver.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.

\Drupal\Core\Asset\AssetCollectionRendererInterface $css_collection_renderer: The CSS asset collection renderer.

\Drupal\Core\Asset\AssetCollectionRendererInterface $js_collection_renderer: The JS asset collection renderer.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

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

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

1 call to HtmlResponseAttachmentsProcessor::__construct()
BigPipeResponseAttachmentsProcessor::__construct in core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php
Constructs a BigPipeResponseAttachmentsProcessor object.
1 method overrides HtmlResponseAttachmentsProcessor::__construct()
BigPipeResponseAttachmentsProcessor::__construct in core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php
Constructs a BigPipeResponseAttachmentsProcessor object.

File

core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php, line 100

Class

HtmlResponseAttachmentsProcessor
Processes attachments of HTML responses.

Namespace

Drupal\Core\Render

Code

public function __construct(AssetResolverInterface $asset_resolver, ConfigFactoryInterface $config_factory, AssetCollectionRendererInterface $css_collection_renderer, AssetCollectionRendererInterface $js_collection_renderer, RequestStack $request_stack, RendererInterface $renderer, ModuleHandlerInterface $module_handler) {
    $this->assetResolver = $asset_resolver;
    $this->config = $config_factory->get('system.performance');
    $this->cssCollectionRenderer = $css_collection_renderer;
    $this->jsCollectionRenderer = $js_collection_renderer;
    $this->requestStack = $request_stack;
    $this->renderer = $renderer;
    $this->moduleHandler = $module_handler;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.