Same name and namespace in other branches
- 8.x-1.x colorbox_inline.module \colorbox_inline_page_attachments() 1 comment
Implements hook_page_attachments().
File
-
./
colorbox_inline.module, line 13
Code
function colorbox_inline_page_attachments(array &$page) {
\Drupal::service('colorbox.attachment')->attach($page);
$page['#attached']['library'][] = 'colorbox_inline/colorbox_inline';
}