You are here

function elf_page_attachments in External Links Filter 8

Implements hook_page_attachments().

File

./elf.module, line 35
Hook implementations for Elf module.

Code

function elf_page_attachments(array &$attachments) {
  if (\Drupal::config('elf.settings')
    ->get('elf_window')) {
    $attachments['#attached']['library'][] = 'elf/elf_js';
  }
}