Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / book / migrations / d6_book.yml
diff --git a/web/core/modules/book/migrations/d6_book.yml b/web/core/modules/book/migrations/d6_book.yml
new file mode 100644 (file)
index 0000000..8964ba0
--- /dev/null
@@ -0,0 +1,24 @@
+id: d6_book
+label: Books
+migration_tags:
+  - Drupal 6
+  - Content
+source:
+  plugin: d6_book
+process:
+  nid: nid
+  'book/bid': bid
+  'book/weight': weight
+  'book/pid':
+    -
+      plugin: skip_on_empty
+      method: process
+      source: plid
+    -
+      plugin: migration_lookup
+      migration: d6_book
+destination:
+  plugin: book
+migration_dependencies:
+  required:
+    - d6_node