public function AssetOptimizerInterface::clean in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php \Drupal\Core\Asset\AssetOptimizerInterface::clean()
- 9 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.
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);