Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / shortcut / migrations / d7_shortcut.yml
diff --git a/web/core/modules/shortcut/migrations/d7_shortcut.yml b/web/core/modules/shortcut/migrations/d7_shortcut.yml
new file mode 100644 (file)
index 0000000..f4265a8
--- /dev/null
@@ -0,0 +1,27 @@
+id: d7_shortcut
+label: Shortcut links
+migration_tags:
+  - Drupal 7
+  - Content
+source:
+  plugin: d7_shortcut
+  constants:
+    uri_scheme: 'internal:/'
+process:
+  shortcut_set:
+     plugin: migration_lookup
+     migration: d7_shortcut_set
+     source: menu_name
+  title: link_title
+  weight: weight
+  link:
+    plugin: concat
+    source:
+      - 'constants/uri_scheme'
+      - link_path
+destination:
+  plugin: entity:shortcut
+migration_dependencies:
+  required:
+    - d7_shortcut_set
+    - d7_menu_links