Optimizes CSS assets.
Hierarchy
- class \Drupal\Core\Asset\CssCollectionOptimizer implements AssetCollectionOptimizerInterface
File
- core/lib/Drupal/Core/Asset/CssCollectionOptimizer.php, line 10
Namespace
Drupal\Core\Asset
Members
Name | Modifiers | Type | Description |
---|---|---|---|
CssCollectionOptimizer::$dumper | protected | property | An asset dumper. |
CssCollectionOptimizer::$grouper | protected | property | A CSS asset grouper. |
CssCollectionOptimizer::$optimizer | protected | property | A CSS asset optimizer. |
CssCollectionOptimizer::$state | protected | property | The state key/value store. |
CssCollectionOptimizer::deleteAll | public | function | Deletes all optimized asset collections assets. Overrides AssetCollectionOptimizerInterface::deleteAll |
CssCollectionOptimizer::generateHash | protected | function | Generate a hash for a given group of CSS assets. |
CssCollectionOptimizer::getAll | public | function | Returns all optimized asset collections assets. Overrides AssetCollectionOptimizerInterface::getAll |
CssCollectionOptimizer::optimize | public | function | The cache file name is retrieved on a page load via a lookup variable that contains an associative array. The array key is the hash of the file names in $css while the value is the cache file name. The cache file is generated in two cases. First, if… Overrides AssetCollectionOptimizerInterface::optimize |
CssCollectionOptimizer::__construct | public | function | Constructs a CssCollectionOptimizer. |
Please login to continue.