comparison core/lib/Drupal/Core/Asset/AssetCollectionOptimizerInterface.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
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 }