UnversionedAssetsTestHooks.php
Namespace
Drupal\unversioned_assets_test\HookFile
-
core/
modules/ system/ tests/ modules/ unversioned_assets_test/ src/ Hook/ UnversionedAssetsTestHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\unversioned_assets_test\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for unversioned_assets_test.
*/
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,
];
}
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
UnversionedAssetsTestHooks | Hook implementations for unversioned_assets_test. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.