advagg.optimizer.css |
service |
./advagg.services.yml |
Drupal\advagg\Asset\CssOptimizer |
advagg.optimizer.js |
service |
./advagg.services.yml |
Drupal\advagg\Asset\JsOptimizer |
AdvaggSettersTrait::$cssCollectionOptimizer |
property |
src/AdvaggSettersTrait.php |
The CSS asset collection optimizer service. |
AdvaggSettersTrait::$jsCollectionOptimizer |
property |
src/AdvaggSettersTrait.php |
The JavaScript asset collection optimizer service. |
AdvaggSettersTrait::setCssCollectionOptimizer |
function |
src/AdvaggSettersTrait.php |
Set CSS asset collection optimizer service. |
AdvaggSettersTrait::setJsCollectionOptimizer |
function |
src/AdvaggSettersTrait.php |
Set JavaScript asset collection optimizer service. |
AssetOptimizer |
class |
src/Asset/AssetOptimizer.php |
Defines the base AdvAgg optimizer. |
AssetOptimizer.php |
file |
src/Asset/AssetOptimizer.php |
|
AssetOptimizer::$basePath |
property |
src/Asset/AssetOptimizer.php |
The base path. |
AssetOptimizer::$basePathLen |
property |
src/Asset/AssetOptimizer.php |
The base path length. |
AssetOptimizer::$brotli |
property |
src/Asset/AssetOptimizer.php |
Whether or not to brotli compress assets. |
AssetOptimizer::$cache |
property |
src/Asset/AssetOptimizer.php |
The AdvAgg cache. |
AssetOptimizer::$cacheLevel |
property |
src/Asset/AssetOptimizer.php |
Config level of caching of assets. |
AssetOptimizer::$cacheTime |
property |
src/Asset/AssetOptimizer.php |
The cache time. |
AssetOptimizer::$config |
property |
src/Asset/AssetOptimizer.php |
A config object for the advagg configuration. |
AssetOptimizer::$dnsPrefetch |
property |
src/Asset/AssetOptimizer.php |
Array of domains to prefetch. Copied to $GLOBALS for later use. |
AssetOptimizer::$eventDispatcher |
property |
src/Asset/AssetOptimizer.php |
Event Dispatcher service. |
AssetOptimizer::$extension |
property |
src/Asset/AssetOptimizer.php |
Asset type (css or js). |
AssetOptimizer::$fileSystem |
property |
src/Asset/AssetOptimizer.php |
The file system. |
AssetOptimizer::$fixType |
property |
src/Asset/AssetOptimizer.php |
Config to control fixing the asset type (file, external). |
AssetOptimizer::$gZip |
property |
src/Asset/AssetOptimizer.php |
Whether or not to gzip assets. |
AssetOptimizer::addDnsPrefetch |
function |
src/Asset/AssetOptimizer.php |
Extract any domains to prefetch DNS. |
AssetOptimizer::convertPathForceHttps |
function |
src/Asset/AssetOptimizer.php |
Convert http:// to https://. |
AssetOptimizer::convertPathProtocolRelative |
function |
src/Asset/AssetOptimizer.php |
Converts absolute paths to be protocol relative paths. |
AssetOptimizer::fixType |
function |
src/Asset/AssetOptimizer.php |
Checks for and if found fixes incorrectly set asset types. |
AssetOptimizer::generateHtaccess |
function |
src/Asset/AssetOptimizer.php |
Generate an htaccess file in the optimized asset dirs to improve serving. |
AssetOptimizer::getCacheTime |
function |
src/Asset/AssetOptimizer.php |
Get how long to cache an asset. Varies on cache level setting. |
AssetOptimizer::optimizeFile |
function |
src/Asset/AssetOptimizer.php |
Perform any in-place optimization & pass to event for further optimization. |
AssetOptimizer::processAssetArray |
function |
src/Asset/AssetOptimizer.php |
Process a core asset array. |
AssetOptimizer::scanFile |
function |
src/Asset/AssetOptimizer.php |
Given a filename calculate various hashes, gather meta data then optimize. |
AssetOptimizer::shouldBrotli |
function |
src/Asset/AssetOptimizer.php |
Determine if settings and available PHP modules allow brotli-ing assets. |
AssetOptimizer::shouldGZip |
function |
src/Asset/AssetOptimizer.php |
Determine if settings and available PHP modules allow GZipping assets. |
AssetOptimizer::sortStable |
function |
src/Asset/AssetOptimizer.php |
Stable sort for CSS and JS items. |
AssetOptimizer::writeFile |
function |
src/Asset/AssetOptimizer.php |
The filename for the CSS or JS optimized file is the cid. |
AssetOptimizer::__construct |
function |
src/Asset/AssetOptimizer.php |
Constructs the Optimizer object. |
charset.css.optimized.css |
file |
advagg_css_minify/tests/src/Kernel/Asset/css_test_files/charset.css.optimized.css |
html{font-family:"sans-serif"} |
comment_hacks.css.optimized.css |
file |
advagg_css_minify/tests/src/Kernel/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… |
CssMinifier::optimize |
function |
advagg_css_minify/src/Asset/CssMinifier.php |
Optimize the asset's content. |
CssMinifierUnitTest::$optimizer |
property |
advagg_css_minify/tests/src/Kernel/Asset/CssMinifierUnitTest.php |
The Minifier. |
CssOptimizer |
class |
src/Asset/CssOptimizer.php |
The CSS Optimizer. |
CssOptimizer.php |
file |
src/Asset/CssOptimizer.php |
|
CssOptimizer::addDnsPrefetch |
function |
src/Asset/CssOptimizer.php |
Extract any domains to prefetch DNS. |
CssOptimizer::fixType |
function |
src/Asset/CssOptimizer.php |
Checks for and if found fixes incorrectly set asset types. |
CssOptimizer::optimizeFile |
function |
src/Asset/CssOptimizer.php |
Perform any in-place optimization & pass to event for further optimization. |
CssOptimizer::updateUrls |
function |
src/Asset/CssOptimizer.php |
Update any internal urls. |
CssOptimizer::__construct |
function |
src/Asset/CssOptimizer.php |
Constructs the Optimizer object. |
CssOptimizerUnitTest |
class |
tests/src/Kernel/Asset/CssOptimizerUnitTest.php |
Tests the CSS asset optimizer. |
CssOptimizerUnitTest.php |
file |
tests/src/Kernel/Asset/CssOptimizerUnitTest.php |
|
CssOptimizerUnitTest::$dir |
property |
tests/src/Kernel/Asset/CssOptimizerUnitTest.php |
The directory for comparison/getting CSS files from. |
CssOptimizerUnitTest::$modules |
property |
tests/src/Kernel/Asset/CssOptimizerUnitTest.php |
Modules to enable. |