function HtmlResponseAttachmentsProcessor::__construct
Constructs a HtmlResponseAttachmentsProcessor object.
Parameters
\Drupal\Core\Asset\AssetResolverInterface $assetResolver: An asset resolver.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.
\Drupal\Core\Asset\AssetCollectionRendererInterface $cssCollectionRenderer: The CSS asset collection renderer.
\Drupal\Core\Asset\AssetCollectionRendererInterface $jsCollectionRenderer: The JS asset collection renderer.
\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler service.
\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.
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 63
Class
- HtmlResponseAttachmentsProcessor
- Processes attachments of HTML responses.
Namespace
Drupal\Core\RenderCode
public function __construct(protected AssetResolverInterface $assetResolver, ConfigFactoryInterface $config_factory, protected AssetCollectionRendererInterface $cssCollectionRenderer, protected AssetCollectionRendererInterface $jsCollectionRenderer, protected RequestStack $requestStack, protected RendererInterface $renderer, protected ModuleHandlerInterface $moduleHandler, protected LanguageManagerInterface $languageManager) {
$this->config = $config_factory->get('system.performance');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.