interface AssetCollectionGrouperInterface in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Asset/AssetCollectionGrouperInterface.php \Drupal\Core\Asset\AssetCollectionGrouperInterface
- 10 core/lib/Drupal/Core/Asset/AssetCollectionGrouperInterface.php \Drupal\Core\Asset\AssetCollectionGrouperInterface
Interface defining a service that logically groups a collection of assets.
Hierarchy
- interface \Drupal\Core\Asset\AssetCollectionGrouperInterface
Expanded class hierarchy of AssetCollectionGrouperInterface
All classes that implement AssetCollectionGrouperInterface
File
- core/
lib/ Drupal/ Core/ Asset/ AssetCollectionGrouperInterface.php, line 8
Namespace
Drupal\Core\AssetView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AssetCollectionGrouperInterface:: |
public | function | Groups a collection of assets into logical groups of asset collections. | 2 |