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