function TestThemeHooks::libraryInfoAlter
Implements hook_library_info_alter().
Attributes
#[Hook('library_info_alter')]
File
-
core/
modules/ system/ tests/ themes/ test_theme/ src/ Hook/ TestThemeHooks.php, line 42
Class
- TestThemeHooks
- Hook implementations for test_theme.
Namespace
Drupal\test_theme\HookCode
public function libraryInfoAlter(array &$libraries, string $extension) : void {
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.