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