interface AssetCollectionOptimizerInterface in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Asset/AssetCollectionOptimizerInterface.php \Drupal\Core\Asset\AssetCollectionOptimizerInterface
Interface defining a service that optimizes a collection of assets.
Hierarchy
- interface \Drupal\Core\Asset\AssetCollectionOptimizerInterface
Expanded class hierarchy of AssetCollectionOptimizerInterface
All classes that implement AssetCollectionOptimizerInterface
2 files declare their use of AssetCollectionOptimizerInterface
- PerformanceForm.php in core/
modules/ system/ src/ Form/ PerformanceForm.php - Contains \Drupal\system\Form\PerformanceForm.
- ThemeInstaller.php in core/
lib/ Drupal/ Core/ Extension/ ThemeInstaller.php - Contains \Drupal\Core\Extension\ThemeInstaller.
File
- core/
lib/ Drupal/ Core/ Asset/ AssetCollectionOptimizerInterface.php, line 12 - Contains \Drupal\Core\Asset\AssetCollectionOptimizerInterface.
Namespace
Drupal\Core\AssetView source
interface AssetCollectionOptimizerInterface {
/**
* Optimizes a collection of assets.
*
* @param array $assets
* An asset collection.
*
* @return array
* An optimized asset collection.
*/
public function optimize(array $assets);
/**
* Returns all optimized asset collections assets.
*
* @return string[]
* URIs for all optimized asset collection assets.
*/
public function getAll();
/**
* Deletes all optimized asset collections assets.
*/
public function deleteAll();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AssetCollectionOptimizerInterface:: |
public | function | Deletes all optimized asset collections assets. | 2 |
AssetCollectionOptimizerInterface:: |
public | function | Returns all optimized asset collections assets. | 2 |
AssetCollectionOptimizerInterface:: |
public | function | Optimizes a collection of assets. | 2 |