summaryrefslogtreecommitdiffstats
path: root/core/modules/content_translation/src/BundleTranslationSettingsInterface.php
diff options
context:
space:
mode:
authorGabor Hojtsy2018-01-20 15:56:17 (GMT)
committerGabor Hojtsy2018-01-20 15:59:18 (GMT)
commitd229279900d1d7d759f0e029bdc28715a20ede2b (patch)
tree3988a04e63d83c74052ed68de62527f86b508109 /core/modules/content_translation/src/BundleTranslationSettingsInterface.php
parent9aaf79dfa568057aa207437258832174a88bdc54 (diff)
Issue #2878556 by plach, matsbla, vijaycs85, Gábor Hojtsy, catch, gabesullice, effulgentsia, hchonov, hass, amateescu, xjm: Ensure that changes to untranslatable fields affect only one translation in pending revisions
(cherry picked from commit 27c3b40e39a6d231866830b28d509632afee0e66)
Diffstat (limited to 'core/modules/content_translation/src/BundleTranslationSettingsInterface.php')
-rw-r--r--core/modules/content_translation/src/BundleTranslationSettingsInterface.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/core/modules/content_translation/src/BundleTranslationSettingsInterface.php b/core/modules/content_translation/src/BundleTranslationSettingsInterface.php
new file mode 100644
index 0000000..df7b64b
--- /dev/null
+++ b/core/modules/content_translation/src/BundleTranslationSettingsInterface.php
@@ -0,0 +1,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);
+
+}