public function HtmlResponseAttachmentsProcessor::__construct in Cookie Content Blocker 8
Constructs a HtmlResponseAttachmentsProcessor object.
Parameters
\Drupal\cookie_content_blocker\BlockedLibraryManagerInterface $library_manager: The library manager for blocked libraries.
\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.
Overrides HtmlResponseAttachmentsProcessor::__construct
File
- src/
Render/ HtmlResponseAttachmentsProcessor.php, line 95
Class
- HtmlResponseAttachmentsProcessor
- Processes attachments of HTML responses.
Namespace
Drupal\cookie_content_blocker\RenderCode
public function __construct(BlockedLibraryManagerInterface $library_manager, AssetResolverInterface $asset_resolver, ConfigFactoryInterface $config_factory, AssetCollectionRendererInterface $css_collection_renderer, AssetCollectionRendererInterface $js_collection_renderer, RequestStack $request_stack, RendererInterface $renderer, ModuleHandlerInterface $module_handler) {
parent::__construct($asset_resolver, $config_factory, $css_collection_renderer, $js_collection_renderer, $request_stack, $renderer, $module_handler);
$this->libraryManager = $library_manager;
$this->blockedAssets = $this->allowedAssets = new AttachedAssets();
}