function AssetCollectionRendererInterface::render

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Asset/AssetCollectionRendererInterface.php \Drupal\Core\Asset\AssetCollectionRendererInterface::render()
  2. 10 core/lib/Drupal/Core/Asset/AssetCollectionRendererInterface.php \Drupal\Core\Asset\AssetCollectionRendererInterface::render()
  3. 11.x core/lib/Drupal/Core/Asset/AssetCollectionRendererInterface.php \Drupal\Core\Asset\AssetCollectionRendererInterface::render()

Renders an asset collection.

Parameters

array $assets: An asset collection.

Return value

array A render array to render the asset collection.

2 methods override AssetCollectionRendererInterface::render()
CssCollectionRenderer::render in core/lib/Drupal/Core/Asset/CssCollectionRenderer.php
Renders an asset collection.
JsCollectionRenderer::render in core/lib/Drupal/Core/Asset/JsCollectionRenderer.php
This class evaluates the aggregation enabled/disabled condition on a group by group basis by testing whether an aggregate file has been made for the group rather than by testing the site-wide aggregation setting. This allows this class to work…

File

core/lib/Drupal/Core/Asset/AssetCollectionRendererInterface.php, line 19

Class

AssetCollectionRendererInterface
Interface defining a service that generates a render array to render assets.

Namespace

Drupal\Core\Asset

Code

public function render(array $assets);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.