Chris@0: getUntranslated()->getChangedTime(); Chris@0: foreach ($this->getTranslationLanguages(FALSE) as $language) { Chris@0: $translation_changed = $this->getTranslation($language->getId())->getChangedTime(); Chris@0: $changed = max($translation_changed, $changed); Chris@0: } Chris@0: return $changed; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Gets the timestamp of the last entity change for the current translation. Chris@0: * Chris@0: * @return int Chris@0: * The timestamp of the last entity save operation. Chris@0: */ Chris@0: public function getChangedTime() { Chris@0: return $this->get('changed')->value; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Sets the timestamp of the last entity change for the current translation. Chris@0: * Chris@0: * @param int $timestamp Chris@0: * The timestamp of the last entity save operation. Chris@0: * Chris@0: * @return $this Chris@0: */ Chris@0: public function setChangedTime($timestamp) { Chris@0: $this->set('changed', $timestamp); Chris@0: return $this; Chris@0: } Chris@0: Chris@0: }