public function AssetOptimizerInterface::optimize in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php \Drupal\Core\Asset\AssetOptimizerInterface::optimize()
- 9 core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php \Drupal\Core\Asset\AssetOptimizerInterface::optimize()
Optimizes an asset.
Parameters
array $asset: An asset.
Return value
string The optimized asset's contents.
File
- core/
lib/ Drupal/ Core/ Asset/ AssetOptimizerInterface.php, line 19
Class
- AssetOptimizerInterface
- Interface defining a service that optimizes an asset.
Namespace
Drupal\Core\AssetCode
public function optimize(array $asset);