Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / language / migrations / language_prefixes_and_domains.yml
diff --git a/web/core/modules/language/migrations/language_prefixes_and_domains.yml b/web/core/modules/language/migrations/language_prefixes_and_domains.yml
new file mode 100644 (file)
index 0000000..898f311
--- /dev/null
@@ -0,0 +1,27 @@
+id: language_prefixes_and_domains
+label: Language prefixes and domains
+migration_tags:
+  - Drupal 6
+  - Drupal 7
+  - Configuration
+source:
+  plugin: language
+  fetch_all: true
+  domain_negotiation: true
+process:
+  url/prefixes:
+    plugin: array_build
+    source: languages
+    key: language
+    value: prefix
+  url/domains:
+    plugin: language_domains
+    source: languages
+    key: language
+    value: domain
+destination:
+  plugin: config
+  config_name: language.negotiation
+migration_dependencies:
+  required:
+    - language