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

Breadcrumb

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

interface 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

1 file declares its use of AssetCollectionGrouperInterface
AssetControllerBase.php in core/modules/system/src/Controller/AssetControllerBase.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
RSS feed
Powered by Drupal