Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Asset/AssetOptimizerInterface.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 an asset. | |
7 */ | |
8 interface AssetOptimizerInterface { | |
9 | |
10 /** | |
11 * Optimizes an asset. | |
12 * | |
13 * @param array $asset | |
14 * An asset. | |
15 * | |
16 * @return string | |
17 * The optimized asset's contents. | |
18 */ | |
19 public function optimize(array $asset); | |
20 | |
21 /** | |
22 * Removes unwanted content from an asset. | |
23 * | |
24 * @param string $content | |
25 * The content of an asset. | |
26 * | |
27 * @return string | |
28 * The cleaned asset's contents. | |
29 */ | |
30 public function clean($content); | |
31 | |
32 } |