Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / web / core / lib / Drupal / Core / Asset / AssetCollectionOptimizerInterface.php
1 <?php
2
3 namespace Drupal\Core\Asset;
4
5 /**
6  * Interface defining a service that optimizes a collection of assets.
7  */
8 interface AssetCollectionOptimizerInterface {
9
10   /**
11    * Optimizes a collection of assets.
12    *
13    * @param array $assets
14    *   An asset collection.
15    *
16    * @return array
17    *   An optimized asset collection.
18    */
19   public function optimize(array $assets);
20
21   /**
22    * Returns all optimized asset collections assets.
23    *
24    * @return string[]
25    *   URIs for all optimized asset collection assets.
26    */
27   public function getAll();
28
29   /**
30    * Deletes all optimized asset collections assets.
31    */
32   public function deleteAll();
33
34 }