interface BundleTranslationSettingsInterface

Same name and namespace in other branches
  1. 9 core/modules/content_translation/src/BundleTranslationSettingsInterface.php \Drupal\content_translation\BundleTranslationSettingsInterface
  2. 8.9.x core/modules/content_translation/src/BundleTranslationSettingsInterface.php \Drupal\content_translation\BundleTranslationSettingsInterface
  3. 10 core/modules/content_translation/src/BundleTranslationSettingsInterface.php \Drupal\content_translation\BundleTranslationSettingsInterface

Interface providing support for content translation bundle settings.

Hierarchy

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_translation
View 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.