You are here

abstract public function SingleAssetOptimizerBase::optimize in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.3 src/Asset/SingleAssetOptimizerBase.php \Drupal\advagg\Asset\SingleAssetOptimizerBase::optimize()

Optimize the asset's content.

Parameters

string $content: The content to optimize.

array $asset: A core asset array.

array $data: The cache data.

Return value

string The optimized content.

4 methods override SingleAssetOptimizerBase::optimize()
CssMinifier::optimize in advagg_css_minify/src/Asset/CssMinifier.php
Optimize the asset's content.
JsMinifier::optimize in advagg_js_minify/src/Asset/JsMinifier.php
Optimize the asset's content.
Minifier::optimize in advagg_ext_minify/src/Asset/Minifier.php
Optimize the asset's content.
TranslateCss::optimize in advagg_mod/src/Asset/TranslateCss.php
Optimize the asset's content.

File

src/Asset/SingleAssetOptimizerBase.php, line 49

Class

SingleAssetOptimizerBase
A base class for optimizing (especially minifying) assets.

Namespace

Drupal\advagg\Asset

Code

public abstract function optimize($content, array $asset, array $data);