ContentTranslationManager::isSupported

public ContentTranslationManager::isSupported($entity_type_id) Checks whether an entity type supports translation. Parameters string $entity_type_id: The entity type. Return value bool TRUE if an entity type is supported, FALSE otherwise. Overrides ContentTranslationManagerInterface::isSupported File core/modules/content_translation/src/ContentTranslationManager.php, line 60 Class ContentTranslationManager Provides common functionality for content translation. Namespace Drupal\content

ContentTranslationManager::isEnabled

public ContentTranslationManager::isEnabled($entity_type_id, $bundle = NULL) Determines whether the given entity type is translatable. @returns bool TRUE if the specified bundle is translatable. If no bundle is provided returns TRUE if at least one of the entity bundles is translatable. Parameters string $entity_type_id: The type of the entity. string $bundle: (optional) The bundle of the entity. If no bundle is provided, all the available bundles are checked. Overrides ContentTranslationManag

ContentTranslationManager::getTranslationMetadata

public ContentTranslationManager::getTranslationMetadata(EntityInterface $translation) Returns an instance of the Content translation metadata. Parameters \Drupal\Core\Entity\EntityInterface $translation: The entity translation whose metadata needs to be retrieved. Return value \Drupal\content_translation\ContentTranslationMetadataWrapperInterface An instance of the content translation metadata. Overrides ContentTranslationManagerInterface::getTranslationMetadata File core/modules/content_tra

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 ContentTranslati

ContentTranslationManager::getSupportedEntityTypes

public ContentTranslationManager::getSupportedEntityTypes() Gets the entity types that support content translation. Return value \Drupal\Core\Entity\EntityTypeInterface[] An array of entity types that support content translation. Overrides ContentTranslationManagerInterface::getSupportedEntityTypes File core/modules/content_translation/src/ContentTranslationManager.php, line 68 Class ContentTranslationManager Provides common functionality for content translation. Namespace Drupal\conte

ContentTranslationManager::$updatesManager

The updates manager. Type: \Drupal\content_translation\ContentTranslationUpdatesManager File core/modules/content_translation/src/ContentTranslationManager.php, line 25 Class ContentTranslationManager Provides common functionality for content translation. Namespace Drupal\content_translation Code protected $updatesManager;

ContentTranslationManager::$entityManager

The entity type manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/content_translation/src/ContentTranslationManager.php, line 18 Class ContentTranslationManager Provides common functionality for content translation. Namespace Drupal\content_translation Code protected $entityManager;

ContentTranslationManager

Provides common functionality for content translation. Hierarchy class \Drupal\content_translation\ContentTranslationManager implements ContentTranslationManagerInterface File core/modules/content_translation/src/ContentTranslationManager.php, line 11 Namespace Drupal\content_translation Members Name Modifiers Type Description ContentTranslationManager::$entityManager protected property The entity type manager. ContentTranslationManager::$updatesManager protected p

ContentTranslationManageAccessCheck::__construct

public ContentTranslationManageAccessCheck::__construct(EntityManagerInterface $manager, LanguageManagerInterface $language_manager) Constructs a ContentTranslationManageAccessCheck object. Parameters \Drupal\Core\Entity\EntityManagerInterface $manager: The entity type manager. \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager. File core/modules/content_translation/src/Access/ContentTranslationManageAccessCheck.php, line 41 Class ContentTranslationManag

ContentTranslationManageAccessCheck::access

public ContentTranslationManageAccessCheck::access(Route $route, RouteMatchInterface $route_match, AccountInterface $account, $source = NULL, $target = NULL, $language = NULL, $entity_type_id = NULL) Checks translation access for the entity and operation on the given route. Parameters \Symfony\Component\Routing\Route $route: The route to check against. \Drupal\Core\Routing\RouteMatchInterface $route_match: The parametrized route. \Drupal\Core\Session\AccountInterface $account: The currently lo