W3cubDocs

/Drupal 8

public function AssetCollectionOptimizerInterface::optimize

public AssetCollectionOptimizerInterface::optimize(array $assets)

Optimizes a collection of assets.

Parameters

array $assets: An asset collection.

Return value

array An optimized asset collection.

File

core/lib/Drupal/Core/Asset/AssetCollectionOptimizerInterface.php, line 19

Class

AssetCollectionOptimizerInterface
Interface defining a service that optimizes a collection of assets.

Namespace

Drupal\Core\Asset

Code

public function optimize(array $assets);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Asset!AssetCollectionOptimizerInterface.php/function/AssetCollectionOptimizerInterface::optimize/8.1.x