class UnversionedAssetsTestHooks

Hook implementations for unversioned_assets_test.

Hierarchy

Expanded class hierarchy of UnversionedAssetsTestHooks

File

core/modules/system/tests/modules/unversioned_assets_test/src/Hook/UnversionedAssetsTestHooks.php, line 12

Namespace

Drupal\unversioned_assets_test\Hook
View source
class UnversionedAssetsTestHooks {
    
    /**
     * Implements hook_library_info_alter().
     */
    public function libraryInfoAlter(&$libraries, $extension) : void {
        if ($extension === 'system') {
            // Remove the version and provide an additional CSS file we can alter the
            // contents of .
            unset($libraries['base']['version']);
            $libraries['base']['css']['component']['public://test.css'] = [
                'weight' => -10,
            ];
        }
    }

}

Members

Title Sort descending Modifiers Object type Summary
UnversionedAssetsTestHooks::libraryInfoAlter public function Implements hook_library_info_alter().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.