Same name in other branches
- 6.0.x advagg.module \advagg_css_alter()
- 7.x-2.x advagg_font/advagg_font.module \advagg_css_alter()
- 8.x-2.x advagg.module \advagg_css_alter()
- 8.x-3.x advagg.module \advagg_css_alter()
- 8.x-4.x advagg.module \advagg_css_alter()
Implements hook_css_alter().
Pass the CSS array to the optimizer service.
Fichier
-
./
advagg.module, line 107
Code
function advagg_css_alter(&$css) {
// Skip if advagg is disabled.
if (!advagg_enabled()) {
return;
}
$css_optimizer = \Drupal::service('advagg.optimizer.css');
$css_optimizer->processAssetArray($css);
}