function system_library_info_alter

Same name in other branches
  1. 10 core/modules/system/system.module \system_library_info_alter()
  2. 11.x core/modules/system/system.module \system_library_info_alter()

Implements hook_library_info_alter().

File

core/modules/system/system.module, line 1309

Code

function system_library_info_alter(&$libraries, $extension) {
    // If Claro is the admin theme but not the active theme, grant Claro the
    // ability to override the toolbar library with its own assets.
    if ($extension === 'toolbar' && _system_is_claro_admin_and_not_active()) {
        require_once DRUPAL_ROOT . '/core/themes/claro/claro.theme';
        claro_system_module_invoked_library_info_alter($libraries, $extension);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.