Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / language / migrations / d7_language_negotiation_settings.yml
diff --git a/web/core/modules/language/migrations/d7_language_negotiation_settings.yml b/web/core/modules/language/migrations/d7_language_negotiation_settings.yml
new file mode 100644 (file)
index 0000000..a33498d
--- /dev/null
@@ -0,0 +1,34 @@
+id: d7_language_negotiation_settings
+label: Language negotiation settings
+migration_tags:
+  - Drupal 7
+  - Configuration
+source:
+  plugin: variable
+  variables:
+    - locale_language_negotiation_session_param
+    - locale_language_negotiation_url_part
+  source_module: locale
+process:
+  session/parameter:
+    plugin: default_value
+    source: locale_language_negotiation_session_param
+    default_value: 'language'
+  selected_langcode:
+    plugin: default_value
+    default_value: 'site_default'
+  url/source:
+    plugin: static_map
+    source: locale_language_negotiation_url_part
+    default_value: path_prefix
+    map:
+      # LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX = 0
+      # LOCALE_LANGUAGE_NEGOTIATION_URL_DOMAIN = 1
+      0: path_prefix
+      1: domain
+destination:
+  plugin: config
+  config_name: language.negotiation
+migration_dependencies:
+  required:
+    - language