function Settings::getAdminTheme
Same name and namespace in other branches
- main core/themes/admin/src/Settings.php \Drupal\admin\Settings::getAdminTheme()
Return the active administration theme.
Return value
string The active administration theme name.
4 calls to Settings::getAdminTheme()
- Settings::allowUserOverrides in core/
themes/ admin/ src/ Settings.php - Determine if user overrides are allowed.
- Settings::get in core/
themes/ admin/ src/ Settings.php - Get the setting for the current user.
- Settings::getDefault in core/
themes/ admin/ src/ Settings.php - Get the default setting from theme.
- Settings::overridden in core/
themes/ admin/ src/ Settings.php - Check if the user setting overrides the global setting.
File
-
core/
themes/ admin/ src/ Settings.php, line 208
Class
- Settings
- Service to handle overridden user settings.
Namespace
Drupal\adminCode
private function getAdminTheme() : string {
$admin_theme = $this->configFactory
->get('system.theme')
->get('admin');
if (empty($admin_theme)) {
$admin_theme = $this->configFactory
->get('system.theme')
->get('default');
}
return $admin_theme;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.