public function ContentTranslationMetadataWrapper::getChangedTime in Drupal 8
Same name and namespace in other branches
- 9 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_translationCode
public function getChangedTime() {
return $this->translation
->hasField('content_translation_changed') ? $this->translation
->get('content_translation_changed')->value : $this->translation
->getChangedTime();
}