You are here

public function EntityChangedInterface::getChangedTimeAcrossTranslations in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityChangedInterface.php \Drupal\Core\Entity\EntityChangedInterface::getChangedTimeAcrossTranslations()

Gets the timestamp of the last entity change across all translations.

This method will return the highest timestamp across all translations. To check that no translation is older than in another version of the entity (e.g. to avoid overwriting newer translations with old data), compare each translation to the other version individually.

Return value

int The timestamp of the last entity save operation across all translations.

File

core/lib/Drupal/Core/Entity/EntityChangedInterface.php, line 49

Class

EntityChangedInterface
Defines an interface for entity change timestamp tracking.

Namespace

Drupal\Core\Entity

Code

public function getChangedTimeAcrossTranslations();