function Settings::allowUserOverrides

Same name and namespace in other branches
  1. 11.x 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.

File

core/themes/admin/src/Settings.php, line 154

Class

Settings
Service to handle overridden user settings.

Namespace

Drupal\admin

Code

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.