class JsCollectionRenderer implements AssetCollectionRendererInterface (View source)

Renders JavaScript assets.

Properties

protected StateInterface $state

The state key/value store.

Methods

__construct(StateInterface $state)

Constructs a JsCollectionRenderer.

array
render(array $js_assets)

Renders an asset collection.

Details

__construct(StateInterface $state)

Constructs a JsCollectionRenderer.

Parameters

StateInterface $state

The state key/value store.

array render(array $js_assets)

Renders an asset collection.

Parameters

array $js_assets

Return Value

array

A render array to render the asset collection.