function SettingsTrayHooks::cssAlter
Implements hook_css_alter().
File
-
core/
modules/ settings_tray/ src/ Hook/ SettingsTrayHooks.php, line 148
Class
- SettingsTrayHooks
- Hook implementations for settings_tray.
Namespace
Drupal\settings_tray\HookCode
public function cssAlter(&$css, AttachedAssetsInterface $assets, LanguageInterface $language) : void {
// @todo Remove once conditional ordering is introduced in
// https://www.drupal.org/node/1945262.
$path = \Drupal::service('extension.list.module')->getPath('settings_tray') . '/css/settings_tray.theme.css';
if (isset($css[$path])) {
// Use 200 to come after CSS_AGGREGATE_THEME.
$css[$path]['group'] = 200;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.