You are here

public function ContentTranslationMetadataWrapper::getChangedTime in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 128
Contains \Drupal\content_translation\ContentTranslationMetadataWrapper.

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();
}