Skip to content

Instantly share code, notes, and snippets.

@sdboyer
Created May 23, 2013 20:35
Show Gist options
  • Select an option

  • Save sdboyer/5639233 to your computer and use it in GitHub Desktop.

Select an option

Save sdboyer/5639233 to your computer and use it in GitHub Desktop.
AssetGroupingInterface
<?php
/**
* @file
* Contains Drupal\Core\Asset\AssetGroupingInterface.
*/
namespace Drupal\Core\Asset;
/**
* Interface defining a service that organizes sets of assets into groups.
*/
interface AssetGroupingInterface {
/**
* Organizes the passed collection of assets into groups.
*
* Each group is itself an array, containing all asset data for each of the
* assets contained within the group.
*
* @param array $collection
* A single-level array containing assets as contained in drupal_add_css()
* or drupal_add_js().
*
* @return array
* A two-level array containing asset groups, which themselves contain all
* the assets from the original parameter.
*
*/
public function groupAssets($collection);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment