You are here

function stable_library_info_alter in Drupal 9

Same name and namespace in other branches
  1. 8 core/themes/stable/stable.theme \stable_library_info_alter()

Implements hook_library_info_alter().

File

core/themes/stable/stable.theme, line 13
Functions to support theming in the Stable theme.

Code

function stable_library_info_alter(&$libraries, $extension) {

  // Add removed css/filter.admin.css file back so that themes overriding
  // this file continue getting same behavior until Drupal 9.
  if ($extension === 'filter') {
    if (isset($libraries['drupal.filter.admin'])) {
      $libraries['drupal.filter.admin']['css']['theme']['css/filter.admin.css'] = [];
    }
    if (isset($libraries['drupal.filter'])) {
      $libraries['drupal.filter']['css']['theme']['css/filter.admin.css'] = [];
    }
  }
}