config->setSystemValue(self::PRESET_CONFIGKEY, $preset->value); $this->configLexiconPreset = $preset; $this->configManager->clearConfigCaches(); } /** * returns currently selected Preset */ public function getLexiconPreset(): Preset { if ($this->configLexiconPreset === null) { $this->configLexiconPreset = Preset::tryFrom($this->config->getSystemValueInt(self::PRESET_CONFIGKEY, 0)) ?? Preset::NONE; } return $this->configLexiconPreset; } }