crm_core.module in CRM Core 8.3
Same filename and directory in other branches
CRM Core module hooks.
File
crm_core.moduleView source
<?php
/**
* @file
* CRM Core module hooks.
*/
use Drupal\Core\Url;
/**
* Implements hook_page_attachments().
*/
function crm_core_page_attachments(array &$attachments) {
if (Url::fromRoute('crm_core.overview')
->access() && \Drupal::currentUser()
->hasPermission('access toolbar')) {
$attachments['#attached']['library'][] = 'crm_core/admin';
}
}
Functions
Name![]() |
Description |
---|---|
crm_core_page_attachments | Implements hook_page_attachments(). |