function ContentTranslationManager::getTranslationHandler

Same name in other branches
  1. 8.9.x core/modules/content_translation/src/ContentTranslationManager.php \Drupal\content_translation\ContentTranslationManager::getTranslationHandler()
  2. 10 core/modules/content_translation/src/ContentTranslationManager.php \Drupal\content_translation\ContentTranslationManager::getTranslationHandler()
  3. 11.x core/modules/content_translation/src/ContentTranslationManager.php \Drupal\content_translation\ContentTranslationManager::getTranslationHandler()

Overrides ContentTranslationManagerInterface::getTranslationHandler

1 call to ContentTranslationManager::getTranslationHandler()
ContentTranslationManager::getTranslationMetadata in core/modules/content_translation/src/ContentTranslationManager.php
Returns an instance of the Content translation metadata.

File

core/modules/content_translation/src/ContentTranslationManager.php, line 45

Class

ContentTranslationManager
Provides common functionality for content translation.

Namespace

Drupal\content_translation

Code

public function getTranslationHandler($entity_type_id) {
    return $this->entityTypeManager
        ->getHandler($entity_type_id, 'translation');
}

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