function stable_library_info_alter
Same name in other branches
- 9 core/themes/stable/stable.theme \stable_library_info_alter()
Implements hook_library_info_alter().
File
-
core/
themes/ stable/ stable.theme, line 13
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'] = [];
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.