Same name in other branches
  1. 5.0.x tests/modules/advagg_test/advagg_test.module \advagg_test_page_attachments()
  2. 6.0.x tests/modules/advagg_test/advagg_test.module \advagg_test_page_attachments()
  3. 8.x-2.x tests/modules/advagg_test/advagg_test.module \advagg_test_page_attachments()
  4. 8.x-3.x tests/modules/advagg_test/advagg_test.module \advagg_test_page_attachments()

Implements hook_page_attachments().

File

tests/modules/advagg_test/advagg_test.module, line 11

Code

function advagg_test_page_attachments(array &$page) {
    $page['#attached']['library'][] = 'advagg_test/external';
    $page['#attached']['library'][] = 'core/jquery.ui';
    $page['#attached']['library'][] = 'advagg_test/screen';
}