function test_theme_library_info_alter
Same name in other branches
- 9 core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_library_info_alter()
- 8.9.x core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_library_info_alter()
- 10 core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_library_info_alter()
Implements hook_library_info_alter().
File
-
core/
modules/ system/ tests/ themes/ test_theme/ test_theme.theme, line 30
Code
function test_theme_library_info_alter(&$libraries, $extension) {
if ($extension === 'test_theme') {
$libraries['kitten']['js']['kittens.js'] = [];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.