class CssCollectionRenderer implements AssetCollectionRendererInterface (View source)

Renders CSS assets.

Properties

protected StateInterface $state

The state key/value store.

protected FileUrlGeneratorInterface $fileUrlGenerator

The file URL generator.

Methods

__construct(StateInterface $state, FileUrlGeneratorInterface $file_url_generator = NULL)

Constructs a CssCollectionRenderer.

array
render(array $css_assets)

Renders an asset collection.

Details

__construct(StateInterface $state, FileUrlGeneratorInterface $file_url_generator = NULL)

Constructs a CssCollectionRenderer.

Parameters

StateInterface $state

The state key/value store.

FileUrlGeneratorInterface $file_url_generator

The file URL generator.

array render(array $css_assets)

Renders an asset collection.

Parameters

array $css_assets

Return Value

array

A render array to render the asset collection.