interface BundleTranslationSettingsInterface
Same name in other branches
- 9 core/modules/content_translation/src/BundleTranslationSettingsInterface.php \Drupal\content_translation\BundleTranslationSettingsInterface
- 8.9.x core/modules/content_translation/src/BundleTranslationSettingsInterface.php \Drupal\content_translation\BundleTranslationSettingsInterface
- 11.x 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);
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
BundleTranslationSettingsInterface::getBundleTranslationSettings | public | function | Returns translation settings for the specified bundle. |
BundleTranslationSettingsInterface::setBundleTranslationSettings | public | function | Sets translation settings for the specified bundle. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.