df7b64bbaf683605a53359a2eb6e27bde4d56b32
[yaffs-website] / web / core / modules / content_translation / src / BundleTranslationSettingsInterface.php
1 <?php
2
3 namespace Drupal\content_translation;
4
5 /**
6  * Interface providing support for content translation bundle settings.
7  */
8 interface BundleTranslationSettingsInterface {
9
10   /**
11    * Returns translation settings for the specified bundle.
12    *
13    * @param string $entity_type_id
14    *   The entity type identifier.
15    * @param string $bundle
16    *   The bundle name.
17    *
18    * @return array
19    *   An associative array of values keyed by setting name.
20    */
21   public function getBundleTranslationSettings($entity_type_id, $bundle);
22
23   /**
24    * Sets translation settings for the specified bundle.
25    *
26    * @param string $entity_type_id
27    *   The entity type identifier.
28    * @param string $bundle
29    *   The bundle name.
30    * @param array $settings
31    *   An associative array of values keyed by setting name.
32    */
33   public function setBundleTranslationSettings($entity_type_id, $bundle, array $settings);
34
35 }