function CommonTestHooks::libraryInfoBuild

Implements hook_library_info_build().

File

core/modules/system/tests/modules/common_test/src/Hook/CommonTestHooks.php, line 82

Class

CommonTestHooks
Hook implementations for common_test.

Namespace

Drupal\common_test\Hook

Code

public function libraryInfoBuild() {
    $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.