You are here

public function ContentTranslationManagerInterface::isEnabled in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_translation/src/ContentTranslationManagerInterface.php \Drupal\content_translation\ContentTranslationManagerInterface::isEnabled()

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.

1 method overrides ContentTranslationManagerInterface::isEnabled()
ContentTranslationManager::isEnabled in core/modules/content_translation/src/ContentTranslationManager.php
Determines whether the given entity type is translatable.

File

core/modules/content_translation/src/ContentTranslationManagerInterface.php, line 78

Class

ContentTranslationManagerInterface
Provides an interface for common functionality for content translation.

Namespace

Drupal\content_translation

Code

public function isEnabled($entity_type_id, $bundle = NULL);