Same name and namespace in other branches
  1. 5.0.x advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter() 1 commentaire
  2. 8.x-2.x advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter() 1 commentaire
  3. 8.x-3.x advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter() 1 commentaire
  4. 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';
    }
}