Optimizes a CSS asset.
Hierarchy
- class \Drupal\Core\Asset\CssOptimizer implements AssetOptimizerInterface
File
- core/lib/Drupal/Core/Asset/CssOptimizer.php, line 10
Namespace
Drupal\Core\Asset
Members
Name | Modifiers | Type | Description |
---|---|---|---|
CssOptimizer::$rewriteFileURIBasePath | public | property | The base path used by rewriteFileURI(). |
CssOptimizer::clean | public | function | Processes the contents of a CSS asset for cleanup. Overrides AssetOptimizerInterface::clean |
CssOptimizer::loadFile | public | function | Loads the stylesheet and resolves all @import commands. |
CssOptimizer::loadNestedFile | protected | function | Loads stylesheets recursively and returns contents with corrected paths. |
CssOptimizer::optimize | public | function | Optimizes an asset. Overrides AssetOptimizerInterface::optimize |
CssOptimizer::processCss | protected | function | Processes the contents of a stylesheet for aggregation. |
CssOptimizer::processFile | protected | function | Build aggregate CSS file. |
CssOptimizer::rewriteFileURI | public | function | Prefixes all paths within a CSS file for processFile(). |
Please login to continue.