function settings_tray_css_alter

Same name in other branches
  1. 9 core/modules/settings_tray/settings_tray.module \settings_tray_css_alter()
  2. 10 core/modules/settings_tray/settings_tray.module \settings_tray_css_alter()
  3. 11.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 180

Code

function settings_tray_css_alter(&$css, AttachedAssetsInterface $assets) {
    // @todo Remove once conditional ordering is introduced in
    //   https://www.drupal.org/node/1945262.
    $path = drupal_get_path('module', '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.