Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SettingsTrayHooks.php

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\Hook

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal