AssetCollectionRendererInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Asset/AssetCollectionRendererInterface.php
  2. 10 core/lib/Drupal/Core/Asset/AssetCollectionRendererInterface.php
  3. 11.x core/lib/Drupal/Core/Asset/AssetCollectionRendererInterface.php

Namespace

Drupal\Core\Asset

File

core/lib/Drupal/Core/Asset/AssetCollectionRendererInterface.php

View source
<?php

namespace Drupal\Core\Asset;


/**
 * Interface defining a service that generates a render array to render assets.
 */
interface AssetCollectionRendererInterface {
    
    /**
     * Renders an asset collection.
     *
     * @param array $assets
     *   An asset collection.
     *
     * @return array
     *   A render array to render the asset collection.
     */
    public function render(array $assets);

}

Interfaces

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

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