AssetCollectionGrouperInterface.php

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

Namespace

Drupal\Core\Asset

File

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

View source
<?php

namespace Drupal\Core\Asset;


/**
 * Interface defining a service that logically groups a collection of assets.
 */
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);

}

Interfaces

Title Deprecated Summary
AssetCollectionGrouperInterface Interface defining a service that logically groups a collection of assets.

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