Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / content_translation / migrations / d6_menu_links_translation.yml
diff --git a/web/core/modules/content_translation/migrations/d6_menu_links_translation.yml b/web/core/modules/content_translation/migrations/d6_menu_links_translation.yml
new file mode 100644 (file)
index 0000000..34e4290
--- /dev/null
@@ -0,0 +1,55 @@
+id: d6_menu_links_translation
+label: Menu links
+migration_tags:
+  - Drupal 6
+  - Content
+  - Multilingual
+source:
+  plugin: d6_menu_link_translation
+process:
+  id: mlid
+  langcode: language
+  title:
+    -
+      plugin: callback
+      source:
+        - title_translated
+        - link_title
+      callable: array_filter
+    -
+      plugin: callback
+      callable: current
+  description:
+    -
+      plugin: callback
+      source:
+        - description_translated
+        - description
+      callable: array_filter
+    -
+      plugin: callback
+      callable: current
+  menu_name:
+    -
+      plugin: migration_lookup
+      # The menu migration is in the system module.
+      migration: d6_menu
+      source: menu_name
+    -
+      plugin: skip_on_empty
+      method: row
+    -
+      plugin: static_map
+      map:
+        management: admin
+      bypass: true
+destination:
+  plugin: entity:menu_link_content
+  default_bundle: menu_link_content
+  no_stub: true
+  translations: true
+migration_dependencies:
+  required:
+    - language
+    - d6_menu
+    - d6_menu_links