You are here

protected function ContentTranslationHandler::hasChangedTime in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/content_translation/src/ContentTranslationHandler.php \Drupal\content_translation\ContentTranslationHandler::hasChangedTime()
  2. 9 core/modules/content_translation/src/ContentTranslationHandler.php \Drupal\content_translation\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 242

Class

ContentTranslationHandler
Base class for content translation handlers.

Namespace

Drupal\content_translation

Code

protected function hasChangedTime() {
  return $this->entityType
    ->entityClassImplements(EntityChangedInterface::class) && $this
    ->checkFieldStorageDefinitionTranslatability('changed');
}