Same name and namespace in other branches
  1. 8.9.x core/modules/system/tests/modules/common_test/common_test.module \common_test_library_info_build()
  2. 9 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
Helper module for the Common tests.

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;
}