Version 1
[yaffs-website] / web / modules / contrib / migrate_plus / migrate_example / config / install / migrate_plus.migration.beer_comment.yml
diff --git a/web/modules/contrib/migrate_plus/migrate_example/config/install/migrate_plus.migration.beer_comment.yml b/web/modules/contrib/migrate_plus/migrate_example/config/install/migrate_plus.migration.beer_comment.yml
new file mode 100644 (file)
index 0000000..e631e9a
--- /dev/null
@@ -0,0 +1,45 @@
+# Migration configuration for beer comments. No new concepts here.
+id: beer_comment
+label: Comments on beers
+migration_group: beer
+source:
+  plugin: beer_comment
+destination:
+  plugin: entity:comment
+process:
+  pid:
+    plugin: migration
+    migration: beer_comment
+    source: cid_parent
+  entity_id:
+    plugin: migration
+    migration: beer_node
+    source: bid
+  entity_type:
+    plugin: default_value
+    default_value: node
+  field_name:
+    plugin: default_value
+    default_value: field_comments
+  comment_type:
+    plugin: default_value
+    default_value: node_comments
+  subject: subject
+  uid:
+    plugin: migration
+    migration: beer_user
+    source: aid
+  name: name
+  mail: mail
+  status:
+    plugin: default_value
+    default_value: 1
+  'comment_body/value': body
+migration_dependencies:
+  required:
+    - beer_node
+    - beer_user
+dependencies:
+  enforced:
+    module:
+      - migrate_example