You are here

function settings_tray_css_alter in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/settings_tray/settings_tray.module \settings_tray_css_alter()
  2. 9 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
Allows configuring blocks and other configuration from the site front-end.

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::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;
  }
}