public function getText($language = null) { $data = $this->getLocalizedfields()->getLocalizedValue("text", $language); $preValue = $this->preGetValue("text"); if ($preValue !== null && !\Pimcore::inAdmin()) { return $preValue; } return $data; }