Generate the css minification configuration.
Return value
array Array($options, $description, $minifiers, $functions).
1 call to CssOptimizer::getConfiguration()
- CssOptimizer::processCssOther dans advagg_css_minify/
src/ Asset/ CssOptimizer.php - Processes the contents of a stylesheet for minification.
Fichier
-
advagg_css_minify/
src/ Asset/ CssOptimizer.php, line 79
Classe
- CssOptimizer
- Optimizes a CSS asset.
Namespace
Drupal\advagg_css_minify\AssetCode
public function getConfiguration() {
$description = '';
$options = [
0 => t('Disabled'),
1 => t('Core'),
2 => t('YUI'),
];
$minifiers = [
NULL,
NULL,
NULL,
];
$functions = [
NULL,
NULL,
NULL,
];
// Allow for other modules to alter this list.
$options_desc = [
$options,
$description,
];
$this->moduleHandler
->alter('advagg_css_minify_configuration', $options_desc, $minifiers, $functions);
list($options, $description) = $options_desc;
return [
$options,
$description,
$minifiers,
$functions,
];
}