Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityChangedInterface.php \Drupal\Core\Entity\EntityChangedInterface::getChangedTimeAcrossTranslations()
  2. 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 51

Class

EntityChangedInterface
Defines an interface for entity change timestamp tracking.

Namespace

Drupal\Core\Entity

Code

public function getChangedTimeAcrossTranslations();