ContentTranslationManagerInterface::setEnabled

public ContentTranslationManagerInterface::setEnabled($entity_type_id, $bundle, $value) Sets the value for translatability of the given entity type bundle. Parameters string $entity_type_id: The entity type. string $bundle: The bundle of the entity. bool $value: The boolean value we need to save. File core/modules/content_translation/src/ContentTranslationManagerInterface.php, line 63 Class ContentTranslationManagerInterface Provides an interface for common functionality for content trans

ContentTranslationManagerInterface::isSupported

public ContentTranslationManagerInterface::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. File core/modules/content_translation/src/ContentTranslationManagerInterface.php, line 29 Class ContentTranslationManagerInterface Provides an interface for common functionality for content translation. Namespace Drupal\content_translation

ContentTranslationManagerInterface::isEnabled

public ContentTranslationManagerInterface::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. File core/modules/conten

ContentTranslationManagerInterface::getTranslationMetadata

public ContentTranslationManagerInterface::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. File core/modules/content_translation/src/ContentTranslationManagerInterface.php, line 51

ContentTranslationManagerInterface::getTranslationHandler

public ContentTranslationManagerInterface::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. File core/modules/content_translation/src/ContentTranslationManagerInterface.php, line 40 Class ContentTranslationManagerInterface Provides an interface f

ContentTranslationManagerInterface::getSupportedEntityTypes

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

ContentTranslationManagerInterface

Provides an interface for common functionality for content translation. Hierarchy interface \Drupal\content_translation\ContentTranslationManagerInterface File core/modules/content_translation/src/ContentTranslationManagerInterface.php, line 10 Namespace Drupal\content_translation Members Name Modifiers Type Description ContentTranslationManagerInterface::getSupportedEntityTypes public function Gets the entity types that support content translation. ContentTranslationM

ContentTranslationManager::__construct

public ContentTranslationManager::__construct(EntityManagerInterface $manager, ContentTranslationUpdatesManager $updates_manager) Constructs a ContentTranslationManageAccessCheck object. Parameters \Drupal\Core\Entity\EntityManagerInterface $manager: The entity type manager. \Drupal\content_translation\ContentTranslationUpdatesManager $updates_manager: The updates manager. File core/modules/content_translation/src/ContentTranslationManager.php, line 35 Class ContentTranslationManager Prov

ContentTranslationManager::setEnabled

public ContentTranslationManager::setEnabled($entity_type_id, $bundle, $value) Sets the value for translatability of the given entity type bundle. Parameters string $entity_type_id: The entity type. string $bundle: The bundle of the entity. bool $value: The boolean value we need to save. Overrides ContentTranslationManagerInterface::setEnabled File core/modules/content_translation/src/ContentTranslationManager.php, line 81 Class ContentTranslationManager Provides common functionality for

ContentTranslationManager::loadContentLanguageSettings

protected ContentTranslationManager::loadContentLanguageSettings($entity_type_id, $bundle) Loads a content language config entity based on the entity type and bundle. Parameters string $entity_type_id: ID of the entity type. string $bundle: Bundle name. Return value \Drupal\language\Entity\ContentLanguageSettings The content language config entity if one exists. Otherwise, returns default values. File core/modules/content_translation/src/ContentTranslationManager.php, line 120 Class Conte