function settings_tray_css_alter
Same name in other branches
- 9 core/modules/settings_tray/settings_tray.module \settings_tray_css_alter()
- 8.9.x core/modules/settings_tray/settings_tray.module \settings_tray_css_alter()
Implements hook_css_alter().
File
-
core/
modules/ settings_tray/ settings_tray.module, line 181
Code
function settings_tray_css_alter(&$css, AttachedAssetsInterface $assets, LanguageInterface $language) {
// @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.