Lines Matching refs:setting_name
109 * @param string $setting_name
114 public static function setPreference(string $setting_name, string $setting_value): void argument
119 if (self::getPreference($setting_name) !== $setting_value) {
121 'setting_name' => $setting_name,
126 self::$preferences[$setting_name] = $setting_value;
128 if (in_array($setting_name, self::SENSITIVE_PREFERENCES, true)) {
132 if (!in_array($setting_name, self::UNIMPORTANT_PREFERENCES, true)) {
133 …Log::addConfigurationLog('Site preference "' . $setting_name . '" set to "' . $setting_value . '"'…
141 * @param string $setting_name
145 public static function getPreference(string $setting_name): string argument
155 return self::$preferences[$setting_name] ?? self::DEFAULT_PREFERENCES[$setting_name] ?? '';