BundleTranslationSettingsInterface.php

Same filename in other branches
  1. 9 core/modules/content_translation/src/BundleTranslationSettingsInterface.php
  2. 8.9.x core/modules/content_translation/src/BundleTranslationSettingsInterface.php
  3. 11.x core/modules/content_translation/src/BundleTranslationSettingsInterface.php

Namespace

Drupal\content_translation

File

core/modules/content_translation/src/BundleTranslationSettingsInterface.php

View source
<?php

namespace Drupal\content_translation;


/**
 * Interface providing support for content translation bundle settings.
 */
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);

}

Interfaces

Title Deprecated Summary
BundleTranslationSettingsInterface Interface providing support for content translation bundle settings.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.