function Settings::allowUserOverrides
Same name and namespace in other branches
- main core/themes/admin/src/Settings.php \Drupal\admin\Settings::allowUserOverrides()
Determine if user overrides are allowed.
Return value
bool TRUE, if the theme settings allow to be overridden by the user, FALSE otherwise.
1 call to Settings::allowUserOverrides()
- Settings::userOverrideEnabled in core/
themes/ admin/ src/ Settings.php - Determine if the user enabled overrides.
File
-
core/
themes/ admin/ src/ Settings.php, line 154
Class
- Settings
- Service to handle overridden user settings.
Namespace
Drupal\adminCode
public function allowUserOverrides() : bool {
$admin_theme = $this->getAdminTheme();
return $this->themeSettingsProvider
->getSetting('show_user_theme_settings', $admin_theme) ?? FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.