Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AssetCollectionRendererInterface.php

function 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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal