public function AssetCollectionRendererInterface::render in Drupal 8
Same name and namespace in other branches
- 9 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\AssetCode
public function render(array $assets);