interface BundleTranslationSettingsInterface in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_translation/src/BundleTranslationSettingsInterface.php \Drupal\content_translation\BundleTranslationSettingsInterface
- 9 core/modules/content_translation/src/BundleTranslationSettingsInterface.php \Drupal\content_translation\BundleTranslationSettingsInterface
Interface providing support for content translation bundle settings.
Hierarchy
- interface \Drupal\content_translation\BundleTranslationSettingsInterface
Expanded class hierarchy of BundleTranslationSettingsInterface
All classes that implement BundleTranslationSettingsInterface
2 files declare their use of BundleTranslationSettingsInterface
- content_translation.admin.inc in core/
modules/ content_translation/ content_translation.admin.inc - The content translation administration forms.
- content_translation.module in core/
modules/ content_translation/ content_translation.module - Allows entities to be translated into different languages.
File
- core/
modules/ content_translation/ src/ BundleTranslationSettingsInterface.php, line 8
Namespace
Drupal\content_translationView source
interface BundleTranslationSettingsInterface {
/**
* Returns translation settings for the specified bundle.
*
* @param string $entity_type_id
* The entity type identifier.
* @param string $bundle
* The bundle name.
*
* @return array
* An associative array of values keyed by setting name.
*/
public function getBundleTranslationSettings($entity_type_id, $bundle);
/**
* Sets translation settings for the specified bundle.
*
* @param string $entity_type_id
* The entity type identifier.
* @param string $bundle
* The bundle name.
* @param array $settings
* An associative array of values keyed by setting name.
*/
public function setBundleTranslationSettings($entity_type_id, $bundle, array $settings);
}