3 namespace Drupal\Core\Asset;
6 * Interface defining a service that optimizes an asset.
8 interface AssetOptimizerInterface {
17 * The optimized asset's contents.
19 public function optimize(array $asset);
22 * Removes unwanted content from an asset.
24 * @param string $content
25 * The content of an asset.
28 * The cleaned asset's contents.
30 public function clean($content);