AssetCollectionGrouperInterface.php 422 B

123456789101112131415161718192021
  1. <?php
  2. namespace Drupal\Core\Asset;
  3. /**
  4. * Interface defining a service that logically groups a collection of assets.
  5. */
  6. interface AssetCollectionGrouperInterface {
  7. /**
  8. * Groups a collection of assets into logical groups of asset collections.
  9. *
  10. * @param array $assets
  11. * An asset collection.
  12. *
  13. * @return array
  14. * A sorted array of asset groups.
  15. */
  16. public function group(array $assets);
  17. }