public EntityChangedTrait::getChangedTimeAcrossTranslations()
Returns the timestamp of the last entity change across all translations.
int The timestamp of the last entity save operation across all translations.
Overrides EntityChangedInterface::getChangedTimeAcrossTranslations
public function getChangedTimeAcrossTranslations() { $changed = $this->getUntranslated()->getChangedTime(); foreach ($this->getTranslationLanguages(FALSE) as $language) { $translation_changed = $this->getTranslation($language->getId())->getChangedTime(); $changed = max($translation_changed, $changed); } return $changed; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityChangedTrait.php/function/EntityChangedTrait::getChangedTimeAcrossTranslations/8.1.x