function ContentTranslationManager::getTranslationHandler in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/content_translation/src/ContentTranslationManager.php \Drupal\content_translation\ContentTranslationManager::getTranslationHandler()
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
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 48 - Contains \Drupal\content_translation\ContentTranslationManager.
Class
- ContentTranslationManager
- Provides common functionality for content translation.
Namespace
Drupal\content_translationCode
function getTranslationHandler($entity_type_id) {
return $this->entityManager
->getHandler($entity_type_id, 'translation');
}