You are here

public function AmpCssCollectionRenderer::__construct in Accelerated Mobile Pages (AMP) 8.3

Constructs a CssCollectionRenderer.

Parameters

\Drupal\Core\Asset\CssCollectionRenderer $cssCollectionRenderer: The decorated CssCollectionRenderer.

\Drupal\Core\State\StateInterface $state: The state key/value store.

\Drupal\amp\Service\AMPService $ampService: The AMP service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Configuration factory.

Overrides CssCollectionRenderer::__construct

File

src/Asset/AmpCssCollectionRenderer.php, line 84

Class

AmpCssCollectionRenderer
Renders CSS assets.

Namespace

Drupal\amp\Asset

Code

public function __construct(CssCollectionRenderer $cssCollectionRenderer, StateInterface $state, AMPService $ampService, RendererInterface $renderer, ConfigFactoryInterface $configFactory) {
  $this->cssCollectionRenderer = $cssCollectionRenderer;
  $this->state = $state;
  $this->ampService = $ampService;
  $this->renderer = $renderer;
  $this->configFactory = $configFactory;
  parent::__construct($state);
}