function ContentTranslationManager::isSupported
Same name in other branches
- 9 core/modules/content_translation/src/ContentTranslationManager.php \Drupal\content_translation\ContentTranslationManager::isSupported()
- 8.9.x core/modules/content_translation/src/ContentTranslationManager.php \Drupal\content_translation\ContentTranslationManager::isSupported()
- 11.x core/modules/content_translation/src/ContentTranslationManager.php \Drupal\content_translation\ContentTranslationManager::isSupported()
2 calls to ContentTranslationManager::isSupported()
- ContentTranslationManager::getSupportedEntityTypes in core/
modules/ content_translation/ src/ ContentTranslationManager.php - ContentTranslationManager::isEnabled in core/
modules/ content_translation/ src/ ContentTranslationManager.php
File
-
core/
modules/ content_translation/ src/ ContentTranslationManager.php, line 62
Class
- ContentTranslationManager
- Provides common functionality for content translation.
Namespace
Drupal\content_translationCode
public function isSupported($entity_type_id) {
$entity_type = $this->entityTypeManager
->getDefinition($entity_type_id);
return $entity_type->isTranslatable() && ($entity_type->hasLinkTemplate('drupal:content-translation-overview') || $entity_type->get('content_translation_ui_skip'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.