You are here

function cmis_page_attachments in CMIS API 8

Implements hook_page_attachments().

Parameters

array $attachments:

File

./cmis.module, line 30
Contains cmis.module.

Code

function cmis_page_attachments(array &$attachments) {
  if (\Drupal::currentUser()
    ->hasPermission('access cmis browser')) {
    $attachments['#attached']['library'][] = 'core/drupal.ajax';
  }
}