function Settings::getDefault
Same name and namespace in other branches
- main core/themes/admin/src/Settings.php \Drupal\admin\Settings::getDefault()
Get the default setting from theme.
Parameters
string $name: The name of the setting.
Return value
array|bool|mixed|null The current value.
1 call to Settings::getDefault()
- Settings::getSettingsForm in core/
themes/ admin/ src/ Settings.php - Build the settings form for the theme.
File
-
core/
themes/ admin/ src/ Settings.php, line 111
Class
- Settings
- Service to handle overridden user settings.
Namespace
Drupal\adminCode
public function getDefault(string $name) : mixed {
$admin_theme = $this->getAdminTheme();
return $this->themeSettingsProvider
->getSetting($name, $admin_theme);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.