ContentTranslationManagerInterface
interface ContentTranslationManagerInterface (View source)
Provides an interface for common functionality for content translation.
Methods
Gets the entity types that support content translation.
Checks whether an entity type supports translation.
Returns an instance of the Content translation handler.
Returns an instance of the Content translation metadata.
Sets the value for translatability of the given entity type bundle.
Determines whether the given entity type is translatable.
Details
EntityTypeInterface[]
getSupportedEntityTypes()
Gets the entity types that support content translation.
bool
isSupported(string $entity_type_id)
Checks whether an entity type supports translation.
ContentTranslationHandlerInterface
getTranslationHandler(string $entity_type_id)
Returns an instance of the Content translation handler.
ContentTranslationMetadataWrapperInterface
getTranslationMetadata(EntityInterface $translation)
Returns an instance of the Content translation metadata.
setEnabled(string $entity_type_id, string $bundle, bool $value)
Sets the value for translatability of the given entity type bundle.
isEnabled(string $entity_type_id, string $bundle = NULL)
Determines whether the given entity type is translatable.