function BigPipeResponseAttachmentsProcessor::__construct
Same name and namespace in other branches
- 11.x core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php \Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor::__construct()
- 10 core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php \Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor::__construct()
- 9 core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php \Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor::__construct()
- 8.9.x core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php \Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor::__construct()
Overrides HtmlResponseAttachmentsProcessor::__construct
File
-
core/
modules/ big_pipe/ src/ Render/ BigPipeResponseAttachmentsProcessor.php, line 28
Class
- BigPipeResponseAttachmentsProcessor
- Processes attachments of HTML responses with BigPipe enabled.
Namespace
Drupal\big_pipe\RenderCode
public function __construct(protected AttachmentsResponseProcessorInterface $htmlResponseAttachmentsProcessor, AssetResolverInterface $asset_resolver, ConfigFactoryInterface $config_factory, #[Autowire(service: 'asset.css.collection_renderer')] AssetCollectionRendererInterface $css_collection_renderer, #[Autowire(service: 'asset.js.collection_renderer')] AssetCollectionRendererInterface $js_collection_renderer, RequestStack $request_stack, RendererInterface $renderer, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager, ?FileUrlGeneratorInterface $file_url_generator = NULL) {
if (!isset($file_url_generator)) {
$file_url_generator = \Drupal::service('file_url_generator');
@trigger_error('Constructing BigPipeResponseAttachmentsProcessor 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);
}
parent::__construct($asset_resolver, $config_factory, $css_collection_renderer, $js_collection_renderer, $request_stack, $renderer, $module_handler, $language_manager, $file_url_generator);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.