Same name in other branches
- 5.0.x src/Asset/SingleAssetOptimizerBase.php \Drupal\advagg\Asset\SingleAssetOptimizerBase::optimize()
- 6.0.x src/Asset/SingleAssetOptimizerBase.php \Drupal\advagg\Asset\SingleAssetOptimizerBase::optimize()
- 8.x-3.x src/Asset/SingleAssetOptimizerBase.php \Drupal\advagg\Asset\SingleAssetOptimizerBase::optimize()
Optimize the asset's content.
Paramètres
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 dans advagg_css_minify/
src/ Asset/ CssMinifier.php - Optimize the asset's content.
- JsMinifier::optimize dans advagg_js_minify/
src/ Asset/ JsMinifier.php - Optimize the asset's content.
- Minifier::optimize dans advagg_ext_minify/
src/ Asset/ Minifier.php - Optimize the asset's content.
- TranslateCss::optimize dans advagg_mod/
src/ Asset/ TranslateCss.php - Optimize the asset's content.
Fichier
-
src/
Asset/ SingleAssetOptimizerBase.php, line 49
Classe
- SingleAssetOptimizerBase
- A base class for optimizing (especially minifying) assets.
Namespace
Drupal\advagg\AssetCode
public abstract function optimize($content, array $asset, array $data);