ContentTranslationMetadataWrapper::getChangedTime

public 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();
}
doc_Drupal
2016-10-29 08:58:24
Comments
Leave a Comment

Please login to continue.