diff --git a/web/modules/custom/agaric_migration/migrations/agaric_blog.yml b/web/modules/custom/agaric_migration/migrations/agaric_blog.yml new file mode 100644 index 0000000..c47d2c3 --- /dev/null +++ b/web/modules/custom/agaric_migration/migrations/agaric_blog.yml @@ -0,0 +1,62 @@ +id: agaric_blog +migration_group: agaric +label: Agaric Blog +source: + plugin: d7_node + node_type: blog +destination: + plugin: entity:node +process: + type: + plugin: default_value + default_value: blog + langcode: + plugin: default_value + source: language + default_value: "und" + title: title + uid: + - + plugin: migration_lookup + migration: agaric_user + source: node_uid + no_stub: true + - + plugin: skip_on_empty + method: row + paragraph_body: + plugin: migration + migration: agaric_blog_paragraph + source: nid + field_body_paragraph: + plugin: iterator + source: + - '@paragraph_body' + process: + target_id: '0' + target_revision_id: '1' + field_image: + - + plugin: iterator + source: field_image + process: + target_id: + plugin: migration_lookup + migration: agaric_file + source: fid + alt: alt + title: title + height: height + width: width + status: status + created: created + changed: changed + promote: promote + sticky: sticky + revision_uid: revision_uid + revision_log: log + revision_timestamp: timestamp +migration_dependencies: + required: + - agaric_user + - agaric_blog_paragraph diff --git a/web/modules/custom/agaric_migration/migrations/agaric_blog_paragraph.yml b/web/modules/custom/agaric_migration/migrations/agaric_blog_paragraph.yml new file mode 100644 index 0000000..953270b --- /dev/null +++ b/web/modules/custom/agaric_migration/migrations/agaric_blog_paragraph.yml @@ -0,0 +1,30 @@ +id: agaric_blog_paragraph +migration_group: agaric +label: Blog Body paragraph +source: + plugin: d7_node + node_type: blog +process: + uid: + - + plugin: migration_lookup + migration: agaric_user + source: node_uid + no_stub: true + - + plugin: skip_on_empty + method: row + status: status + created: created + parent_type: "node" + field_text: body +destination: + plugin: 'entity_reference_revisions:paragraph' + default_bundle: text +dependencies: + enforced: + module: + - paragraphs +migration_dependencies: + required: + - agaric_user