function AssetOptimizerInterface::clean
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php \Drupal\Core\Asset\AssetOptimizerInterface::clean()
- 10 core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php \Drupal\Core\Asset\AssetOptimizerInterface::clean()
- 11.x core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php \Drupal\Core\Asset\AssetOptimizerInterface::clean()
Removes unwanted content from an asset.
Parameters
string $content: The content of an asset.
Return value
string The cleaned asset's contents.
2 methods override AssetOptimizerInterface::clean()
- CssOptimizer::clean in core/
lib/ Drupal/ Core/ Asset/ CssOptimizer.php - Processes the contents of a CSS asset for cleanup.
- JsOptimizer::clean in core/
lib/ Drupal/ Core/ Asset/ JsOptimizer.php - Processes the contents of a javascript asset for cleanup.
File
-
core/
lib/ Drupal/ Core/ Asset/ AssetOptimizerInterface.php, line 30
Class
- AssetOptimizerInterface
- Interface defining a service that optimizes an asset.
Namespace
Drupal\Core\AssetCode
public function clean($content);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.