function Settings::overridden
Same name and namespace in other branches
- main core/themes/admin/src/Settings.php \Drupal\admin\Settings::overridden()
Check if the user setting overrides the global setting.
Parameters
string $name: Name of the setting to check.
\Drupal\Core\Session\AccountInterface|null $account: The account object. Current user if NULL.
Return value
bool TRUE or FALSE.
File
-
core/
themes/ admin/ src/ Settings.php, line 194
Class
- Settings
- Service to handle overridden user settings.
Namespace
Drupal\adminCode
public function overridden(string $name, ?AccountInterface $account = NULL) : bool {
if (!$account) {
$account = $this->currentUser;
}
$admin_theme = $this->getAdminTheme();
return $this->themeSettingsProvider
->getSetting($name, $admin_theme) !== $this->get($name, $account);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.