function HtmlResponseAttachmentsProcessor::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::__construct()
- 10 core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::__construct()
- 9 core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::__construct()
- 8.9.x core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::__construct()
1 call to HtmlResponseAttachmentsProcessor::__construct()
- BigPipeResponseAttachmentsProcessor::__construct in core/
modules/ big_pipe/ src/ Render/ BigPipeResponseAttachmentsProcessor.php
1 method overrides HtmlResponseAttachmentsProcessor::__construct()
- BigPipeResponseAttachmentsProcessor::__construct in core/
modules/ big_pipe/ src/ Render/ BigPipeResponseAttachmentsProcessor.php
File
-
core/
lib/ Drupal/ Core/ Render/ HtmlResponseAttachmentsProcessor.php, line 44
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, protected ?FileUrlGeneratorInterface $fileUrlGenerator = NULL) {
if (!isset($fileUrlGenerator)) {
$this->fileUrlGenerator = \Drupal::service('file_url_generator');
@trigger_error('Constructing HtmlResponseAttachmentsProcessor without a file url generator is deprecated in drupal:11.4.0 and the argument will be required in drupal:12.0.0. See https://www.drupal.org/project/drupal/issues/3366561', E_USER_DEPRECATED);
}
$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.