Same name and namespace in other branches
- 5.0.x advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter() 1 commentaire
- 8.x-2.x advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter() 1 commentaire
- 8.x-3.x advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter() 1 commentaire
- 8.x-4.x advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter() 1 commentaire
Implements hook_page_attachments_alter().
Fichier
-
advagg_mod/
advagg_mod.module, line 90
Code
function advagg_mod_page_attachments_alter(array &$page) {
if (advagg_mod_css_defer_active()) {
$page['#attached']['library'][] = 'advagg_mod/css_defer';
}
}