Lines Matching refs:setting_name
167 * @param string $setting_name
172 public function setPreference(string $setting_name, string $setting_value): Tree argument
174 if ($setting_value !== $this->getPreference($setting_name)) {
177 'setting_name' => $setting_name,
182 $this->preferences[$setting_name] = $setting_value;
184 …Log::addConfigurationLog('Tree preference "' . $setting_name . '" set to "' . $setting_value . '"'…
193 * @param string $setting_name
198 public function getPreference(string $setting_name, string|null $default = null): string argument
207 …return $this->preferences[$setting_name] ?? $default ?? self::DEFAULT_PREFERENCES[$setting_name] ?…
264 * @param string $setting_name
269 …public function setUserPreference(UserInterface $user, string $setting_name, string $setting_value… argument
271 if ($this->getUserPreference($user, $setting_name) !== $setting_value) {
276 'setting_name' => $setting_name,
282 $this->user_preferences[$user->id()][$setting_name] = $setting_value;
284 …Log::addConfigurationLog('Tree preference "' . $setting_name . '" set to "' . $setting_value . '" …
294 * @param string $setting_name
299 …public function getUserPreference(UserInterface $user, string $setting_name, string $default = '')… argument
311 return $this->user_preferences[$user->id()][$setting_name] ?? $default;