You are here

function easymeta_page_attachments_alter in Easymeta 8

Implements hook_page_attachments_alter().

File

./easymeta.module, line 87
Contains easy_meta.module.

Code

function easymeta_page_attachments_alter(array &$page) {
  if (!\Drupal::currentUser()
    ->hasPermission('access contextual links')) {
    return;
  }
  $page['#attached']['library'][] = 'easymeta/easymeta';
}