ContentTranslationManager::getTranslationHandler

ContentTranslationManager::getTranslationHandler($entity_type_id)

Returns an instance of the Content translation handler.

Parameters

string $entity_type_id: The type of the entity being translated.

Return value

\Drupal\content_translation\ContentTranslationHandlerInterface An instance of the content translation handler.

Overrides ContentTranslationManagerInterface::getTranslationHandler

File

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

Class

ContentTranslationManager
Provides common functionality for content translation.

Namespace

Drupal\content_translation

Code

function getTranslationHandler($entity_type_id) {
  return $this->entityManager->getHandler($entity_type_id, 'translation');
}
doc_Drupal
2016-10-29 08:58:20
Comments
Leave a Comment

Please login to continue.