Search for optimize

  1. Search 7.x for optimize
  2. Search 9.5.x for optimize
  3. Search 8.9.x for optimize
  4. Search 10.3.x for optimize
  5. Other projects
Title Object type File name Summary
AssetCollectionGroupOptimizerInterface interface core/lib/Drupal/Core/Asset/AssetCollectionGroupOptimizerInterface.php Interface defining a service that optimizes a collection of assets.
AssetCollectionGroupOptimizerInterface.php file core/lib/Drupal/Core/Asset/AssetCollectionGroupOptimizerInterface.php
AssetCollectionGroupOptimizerInterface::optimizeGroup function core/lib/Drupal/Core/Asset/AssetCollectionGroupOptimizerInterface.php Optimizes a specific group of assets.
AssetCollectionOptimizerInterface interface core/lib/Drupal/Core/Asset/AssetCollectionOptimizerInterface.php Interface defining a service that optimizes a collection of assets.
AssetCollectionOptimizerInterface.php file core/lib/Drupal/Core/Asset/AssetCollectionOptimizerInterface.php
AssetCollectionOptimizerInterface::deleteAll function core/lib/Drupal/Core/Asset/AssetCollectionOptimizerInterface.php Deletes all optimized asset collections assets.
AssetCollectionOptimizerInterface::optimize function core/lib/Drupal/Core/Asset/AssetCollectionOptimizerInterface.php Optimizes a collection of assets.
AssetOptimizerInterface interface core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php Interface defining a service that optimizes an asset.
AssetOptimizerInterface.php file core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php
AssetOptimizerInterface::clean function core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php Removes unwanted content from an asset.
AssetOptimizerInterface::optimize function core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php Optimizes an asset.
CacheContextsManager::optimizeTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Optimizes cache context tokens (the minimal representative subset).
CacheContextsManagerTest::providerTestOptimizeTokens function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Provides a list of context token sets.
CacheContextsManagerTest::testOptimizeTokens function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php @covers ::optimizeTokens
charset.css.optimized.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/charset.css.optimized.css html{font-family:"sans-serif";}
comment_hacks.css.optimized.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/comment_hacks.css.optimized.css .test1{display:block;}html .clear-block{height:1%;}.clear-block{display:block;font:italic bold 12px/30px…
CssCollectionOptimizerLazy class core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php Optimizes CSS assets.
CssCollectionOptimizerLazy.php file core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php
CssCollectionOptimizerLazy::deleteAll function core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php Deletes all optimized asset collections assets.
CssCollectionOptimizerLazy::optimize function core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php Optimizes a collection of assets.
CssCollectionOptimizerLazy::optimizeGroup function core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php Optimizes a specific group of assets.
CssCollectionOptimizerLazy::__construct function core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php Constructs a CssCollectionOptimizerLazy.
CssCollectionOptimizerLazyUnitTest class core/tests/Drupal/Tests/Core/Asset/CssCollectionOptimizerLazyUnitTest.php Tests the CSS asset optimizer.
CssCollectionOptimizerLazyUnitTest.php file core/tests/Drupal/Tests/Core/Asset/CssCollectionOptimizerLazyUnitTest.php
CssCollectionOptimizerLazyUnitTest::testCssImport function core/tests/Drupal/Tests/Core/Asset/CssCollectionOptimizerLazyUnitTest.php Tests that CSS imports with strange letters do not destroy the CSS output.
CssCollectionOptimizerLazyUnitTest::testCssLicenseAggregation function core/tests/Drupal/Tests/Core/Asset/CssCollectionOptimizerLazyUnitTest.php Test that license information is added correctly to aggregated CSS.
CssOptimizer class core/lib/Drupal/Core/Asset/CssOptimizer.php Optimizes a CSS asset.
CssOptimizer.php file core/lib/Drupal/Core/Asset/CssOptimizer.php
CssOptimizer::$fileUrlGenerator property core/lib/Drupal/Core/Asset/CssOptimizer.php The file URL generator.
CssOptimizer::$rewriteFileURIBasePath property core/lib/Drupal/Core/Asset/CssOptimizer.php The base path used by rewriteFileURI().
CssOptimizer::clean function core/lib/Drupal/Core/Asset/CssOptimizer.php Processes the contents of a CSS asset for cleanup.
CssOptimizer::loadFile function core/lib/Drupal/Core/Asset/CssOptimizer.php Loads the stylesheet and resolves all @import commands.
CssOptimizer::loadNestedFile function core/lib/Drupal/Core/Asset/CssOptimizer.php Loads stylesheets recursively and returns contents with corrected paths.
CssOptimizer::optimize function core/lib/Drupal/Core/Asset/CssOptimizer.php Optimizes an asset.
CssOptimizer::processCss function core/lib/Drupal/Core/Asset/CssOptimizer.php Processes the contents of a stylesheet for aggregation.
CssOptimizer::processFile function core/lib/Drupal/Core/Asset/CssOptimizer.php Processes CSS file and adds base URLs to any relative resource paths.
CssOptimizer::rewriteFileURI function core/lib/Drupal/Core/Asset/CssOptimizer.php Prefixes all paths within a CSS file for processFile().
CssOptimizer::__construct function core/lib/Drupal/Core/Asset/CssOptimizer.php Constructs a CssOptimizer.
CssOptimizerUnitTest class core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Tests the CSS asset optimizer.
CssOptimizerUnitTest.php file core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
CssOptimizerUnitTest::$fileUrlGenerator property core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php The file URL generator mock.
CssOptimizerUnitTest::$optimizer property core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php A CSS asset optimizer.
CssOptimizerUnitTest::providerTestOptimize function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Provides data for the CSS asset optimizing test.
CssOptimizerUnitTest::setUp function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
CssOptimizerUnitTest::testOptimize function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Tests optimizing a CSS asset group containing 'type' => 'file'.
CssOptimizerUnitTest::testTypeExternal function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Tests a CSS asset with 'type' => 'external'.
CssOptimizerUnitTest::testTypeFilePreprocessingDisabled function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Tests a file CSS asset with preprocessing disabled.
css_input_simple_with_media.css.optimized.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/css_input_simple_with_media.css.optimized.css @media screen{body{margin:0;padding:0;background:#edf5fa;font:76%/170% Verdana,sans-serif;color:#494949;}
}
css_input_without_import.css.optimized.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/css_input_without_import.css.optimized.css body{margin:0;padding:0;background:#edf5fa;font:76%/170% Verdana,sans-serif;color:#494949;}.this .is .a .test{font:1em/100% Verdana,sans-serif;color:#494949;}.this
.is
.a
.test{font:1em/100% Verdana,sans-serif;color:#494949;}some :pseudo…
css_input_with_import.css.optimized.aggregated.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/css_input_with_import.css.optimized.aggregated.css @import url("https://fonts.fontprovider.com/css2?family=Roboto+Mono:wght@300;400&family=Roboto:ital,wght@0,300;0,400;1,300;1,400&display=swap") print;@import url('import1.css') screen;@import…

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.