advagg_bundler_test.module in Advanced CSS/JS Aggregation 8.3
Same filename and directory in other branches
Advanced CSS/JS aggregation testing module.
File
advagg_bundler/tests/modules/advagg_bundler_test/advagg_bundler_test.moduleView source
<?php
/**
* @file
* Advanced CSS/JS aggregation testing module.
*/
/**
* Implements hook_page_attachments().
*/
function advagg_bundler_test_page_attachments(array &$page) {
if (\Drupal::service('path.current')
->getPath() == '/admin') {
$page['#attached']['library'][] = 'advagg_bundler_test/test';
}
}
Functions
Name | Description |
---|---|
advagg_bundler_test_page_attachments | Implements hook_page_attachments(). |