Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / language / migrations / d7_language_types.yml
diff --git a/web/core/modules/language/migrations/d7_language_types.yml b/web/core/modules/language/migrations/d7_language_types.yml
new file mode 100644 (file)
index 0000000..017f2e2
--- /dev/null
@@ -0,0 +1,42 @@
+id: d7_language_types
+label: Language types
+migration_tags:
+  - Drupal 7
+  - Configuration
+source:
+  plugin: variable
+  variables:
+    - language_types
+    - language_negotiation_language
+    - language_negotiation_language_content
+    - language_negotiation_language_url
+    - locale_language_providers_weight_language
+    - locale_language_providers_weight_language_content
+    - locale_language_providers_weight_language_url
+  source_module: language
+process:
+  all:
+    plugin: language_types
+    source: language_types
+  configurable:
+    plugin: language_types
+    source: language_types
+    filter_configurable: true
+  negotiation/language_content:
+    plugin: language_negotiation
+    source:
+      - language_negotiation_language_content
+      - locale_language_providers_weight_language_content
+  negotiation/language_url:
+    plugin: language_negotiation
+    source:
+      - language_negotiation_language_url
+      - locale_language_providers_weight_language_url
+  negotiation/language_interface:
+    plugin: language_negotiation
+    source:
+      - language_negotiation_language
+      - locale_language_providers_weight_language
+destination:
+  plugin: config
+  config_name: language.types