Same name in other branches
  1. 6.0.x src/Asset/SingleAssetOptimizerBase.php \Drupal\advagg\Asset\SingleAssetOptimizerBase::optimize()
  2. 8.x-3.x src/Asset/SingleAssetOptimizerBase.php \Drupal\advagg\Asset\SingleAssetOptimizerBase::optimize()
  3. 8.x-4.x 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);