function AssetCollectionGrouperInterface::group
Same name in other branches
- 9 core/lib/Drupal/Core/Asset/AssetCollectionGrouperInterface.php \Drupal\Core\Asset\AssetCollectionGrouperInterface::group()
- 8.9.x core/lib/Drupal/Core/Asset/AssetCollectionGrouperInterface.php \Drupal\Core\Asset\AssetCollectionGrouperInterface::group()
- 11.x core/lib/Drupal/Core/Asset/AssetCollectionGrouperInterface.php \Drupal\Core\Asset\AssetCollectionGrouperInterface::group()
Groups a collection of assets into logical groups of asset collections.
Parameters
array $assets: An asset collection.
Return value
array A sorted array of asset groups.
2 methods override AssetCollectionGrouperInterface::group()
- CssCollectionGrouper::group in core/
lib/ Drupal/ Core/ Asset/ CssCollectionGrouper.php - Puts multiple items into the same group if they are groupable. Items of the 'file' type are groupable if their 'preprocess' flag is TRUE, and items of the 'external' type are never groupable. Items with a media type of…
- JsCollectionGrouper::group in core/
lib/ Drupal/ Core/ Asset/ JsCollectionGrouper.php - Puts multiple items into the same group if they are groupable. Items of the 'file' type are groupable if their 'preprocess' flag is TRUE. Items of the 'external' type are not groupable.
File
-
core/
lib/ Drupal/ Core/ Asset/ AssetCollectionGrouperInterface.php, line 19
Class
- AssetCollectionGrouperInterface
- Interface defining a service that logically groups a collection of assets.
Namespace
Drupal\Core\AssetCode
public function group(array $assets);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.