tacjs_log.module in TacJS 8.6
The main file for the TacJS Log module.
Comply to the European cookie law using tarteaucitron.js.
File
tacjs_log/tacjs_log.moduleView source
<?php
/**
* @file
* The main file for the TacJS Log module.
*
* Comply to the European cookie law using tarteaucitron.js.
*/
/**
* Implements hook_page_attachments().
*
* Insert JavaScript to the appropriate scope/region of the page.
*/
function tacjs_log_page_attachments(&$page) {
if (!\Drupal::service('router.admin_context')
->isAdminRoute()) {
$page['#attached']['library'][] = 'tacjs_log/log';
}
}
Functions
Name![]() |
Description |
---|---|
tacjs_log_page_attachments | Implements hook_page_attachments(). |