Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / block_content / migrations / d7_custom_block.yml
diff --git a/web/core/modules/block_content/migrations/d7_custom_block.yml b/web/core/modules/block_content/migrations/d7_custom_block.yml
new file mode 100644 (file)
index 0000000..16c659f
--- /dev/null
@@ -0,0 +1,24 @@
+id: d7_custom_block
+label: Custom blocks
+audit: true
+migration_tags:
+  - Drupal 7
+  - Content
+source:
+  plugin: d7_block_custom
+process:
+  id: bid
+  info: info
+  'body/format':
+    plugin: migration_lookup
+    migration: d7_filter_format
+    source: format
+  'body/value': body
+destination:
+  plugin: entity:block_content
+  default_bundle: basic
+  no_stub: true
+migration_dependencies:
+  required:
+    - d7_filter_format
+    - block_content_body_field