function common_test_library_info_build
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/common_test/common_test.module \common_test_library_info_build()
- 8.9.x core/modules/system/tests/modules/common_test/common_test.module \common_test_library_info_build()
- 10 core/modules/system/tests/modules/common_test/common_test.module \common_test_library_info_build()
Implements hook_library_info_build().
File
-
core/
modules/ system/ tests/ modules/ common_test/ common_test.module, line 147
Code
function common_test_library_info_build() {
$libraries = [];
if (\Drupal::state()->get('common_test.library_info_build_test')) {
$libraries['dynamic_library'] = [
'version' => '1.0',
'css' => [
'base' => [
'common_test.css' => [],
],
],
];
}
return $libraries;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.