interface AssetCollectionGrouperInterface

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Asset/AssetCollectionGrouperInterface.php \Drupal\Core\Asset\AssetCollectionGrouperInterface
  2. 8.9.x core/lib/Drupal/Core/Asset/AssetCollectionGrouperInterface.php \Drupal\Core\Asset\AssetCollectionGrouperInterface
  3. 11.x core/lib/Drupal/Core/Asset/AssetCollectionGrouperInterface.php \Drupal\Core\Asset\AssetCollectionGrouperInterface

Interface defining a service that logically groups a collection of assets.

Hierarchy

Expanded class hierarchy of AssetCollectionGrouperInterface

All classes that implement AssetCollectionGrouperInterface

3 files declare their use of AssetCollectionGrouperInterface
AssetControllerBase.php in core/modules/system/src/Controller/AssetControllerBase.php
CssCollectionOptimizerLazyUnitTest.php in core/tests/Drupal/Tests/Core/Asset/CssCollectionOptimizerLazyUnitTest.php
CssCollectionOptimizerUnitTest.php in core/tests/Drupal/Tests/Core/Asset/CssCollectionOptimizerUnitTest.php

File

core/lib/Drupal/Core/Asset/AssetCollectionGrouperInterface.php, line 8

Namespace

Drupal\Core\Asset
View source
interface AssetCollectionGrouperInterface {
  
  /**
   * Groups a collection of assets into logical groups of asset collections.
   *
   * @param array $assets
   *   An asset collection.
   *
   * @return array
   *   A sorted array of asset groups.
   */
  public function group(array $assets);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
AssetCollectionGrouperInterface::group public function Groups a collection of assets into logical groups of asset collections. 2

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