You are here

public function ContentTranslationMetadataWrapper::getChangedTime in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_translation/src/ContentTranslationMetadataWrapper.php \Drupal\content_translation\ContentTranslationMetadataWrapper::getChangedTime()

Returns the timestamp of the last entity change from current translation.

Return value

int The timestamp of the last entity save operation.

Overrides ContentTranslationMetadataWrapperInterface::getChangedTime

File

core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 123

Class

ContentTranslationMetadataWrapper
Base class for content translation metadata wrappers.

Namespace

Drupal\content_translation

Code

public function getChangedTime() {
  return $this->translation
    ->hasField('content_translation_changed') ? $this->translation
    ->get('content_translation_changed')->value : $this->translation
    ->getChangedTime();
}