public function AmpHtmlResponseAttachmentsProcessor::__construct in Accelerated Mobile Pages (AMP) 8.3
Same name and namespace in other branches
- 8 src/Render/AmpHtmlResponseAttachmentsProcessor.php \Drupal\amp\Render\AmpHtmlResponseAttachmentsProcessor::__construct()
- 8.2 src/Render/AmpHtmlResponseAttachmentsProcessor.php \Drupal\amp\Render\AmpHtmlResponseAttachmentsProcessor::__construct()
Constructs a HtmlResponseAttachmentsProcessor object.
Parameters
\Drupal\amp\Routing\AmpContext $amp_context: The route amp context to determine whether the route is an amp one.
\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/ AmpHtmlResponseAttachmentsProcessor.php, line 76
Class
- AmpHtmlResponseAttachmentsProcessor
- Processes attachments of AMP HTML responses.
Namespace
Drupal\amp\RenderCode
public function __construct(HtmlResponseAttachmentsProcessor $htmlResponseAttachmentsProcessor, AmpContext $amp_context, AssetResolverInterface $asset_resolver, ConfigFactoryInterface $config_factory, AssetCollectionRendererInterface $css_collection_renderer, AssetCollectionRendererInterface $js_collection_renderer, RequestStack $request_stack, RendererInterface $renderer, ModuleHandlerInterface $module_handler) {
$this->htmlResponseAttachmentsProcessor = $htmlResponseAttachmentsProcessor;
$this->ampContext = $amp_context;
parent::__construct($asset_resolver, $config_factory, $css_collection_renderer, $js_collection_renderer, $request_stack, $renderer, $module_handler);
}