Mercurial > hg > isophonics-drupal-site
diff core/modules/content_translation/src/BundleTranslationSettingsInterface.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/content_translation/src/BundleTranslationSettingsInterface.php Mon Apr 23 09:46:53 2018 +0100 @@ -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); + +}