function js_testing_log_test_page_attachments
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/js_testing_log_test/js_testing_log_test.module \js_testing_log_test_page_attachments()
- 10 core/modules/system/tests/modules/js_testing_log_test/js_testing_log_test.module \js_testing_log_test_page_attachments()
Implements hook_page_attachments().
File
-
core/
modules/ system/ tests/ modules/ js_testing_log_test/ js_testing_log_test.module, line 13
Code
function js_testing_log_test_page_attachments(array &$attachments) {
// Unconditionally attach an asset to the page.
$attachments['#attached']['library'][] = 'js_testing_log_test/deprecation_log';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.