ContentTranslationHandler::hasChangedTime

protected ContentTranslationHandler::hasChangedTime()

Checks whether the entity type supports modification time natively.

Return value

bool TRUE if metadata is natively supported, FALSE otherwise.

File

core/modules/content_translation/src/ContentTranslationHandler.php, line 196

Class

ContentTranslationHandler
Base class for content translation handlers.

Namespace

Drupal\content_translation

Code

protected function hasChangedTime() {
  return $this->entityType->isSubclassOf('Drupal\Core\Entity\EntityChangedInterface') && $this->checkFieldStorageDefinitionTranslatability('changed');
}
doc_Drupal
2016-10-29 08:58:16
Comments
Leave a Comment

Please login to continue.