function _system_is_claro_admin_and_not_active
Same name in other branches
- 9 core/modules/system/system.module \_system_is_claro_admin_and_not_active()
- 10 core/modules/system/system.module \_system_is_claro_admin_and_not_active()
Determines if Claro is the admin theme but not the active theme.
Return value
bool TRUE if Claro is the admin theme but not the active theme.
Related topics
3 calls to _system_is_claro_admin_and_not_active()
- SystemHooks::libraryInfoAlter in core/
modules/ system/ src/ Hook/ SystemHooks.php - Implements hook_library_info_alter().
- SystemHooks::themeRegistryAlter in core/
modules/ system/ src/ Hook/ SystemHooks.php - Implements hook_theme_registry_alter().
- system_preprocess_toolbar in core/
modules/ system/ system.module - Implements hook_preprocess_toolbar().
File
-
core/
modules/ system/ system.module, line 472
Code
function _system_is_claro_admin_and_not_active() {
$admin_theme = \Drupal::configFactory()->get('system.theme')
->get('admin');
$active_theme = \Drupal::theme()->getActiveTheme()
->getName();
return $active_theme !== 'claro' && $admin_theme === 'claro';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.