function ContentTranslationHandler::hasChangedTime

Same name in other branches
  1. 9 core/modules/content_translation/src/ContentTranslationHandler.php \Drupal\content_translation\ContentTranslationHandler::hasChangedTime()
  2. 8.9.x core/modules/content_translation/src/ContentTranslationHandler.php \Drupal\content_translation\ContentTranslationHandler::hasChangedTime()
  3. 11.x 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.

1 call to ContentTranslationHandler::hasChangedTime()
ContentTranslationHandler::getFieldDefinitions in core/modules/content_translation/src/ContentTranslationHandler.php
Returns a set of field definitions to be used to store metadata items.

File

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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.