summaryrefslogtreecommitdiffstats
path: root/core/modules/content_translation/src/BundleTranslationSettingsInterface.php
blob: df7b64bbaf683605a53359a2eb6e27bde4d56b32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?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);

}