Agaric people migration

This commit is contained in:
David Valdez 2018-10-29 12:42:12 -06:00
parent 176e291c24
commit 5edb136586
2 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,43 @@
id: agaric_people
migration_group: agaric
label: Agaric People
source:
plugin: d7_user
constants:
admin_uid: 1
destination:
plugin: entity:node
process:
type:
plugin: default_value
default_value: people
title: name
created: created
status: status
#This field is empty.
#field_summary: field_bio/0/summary
paragraph_bio:
plugin: migration
migration: agaric_people_paragraph
source: uid
field_body_paragraph:
plugin: iterator
source:
- '@paragraph_bio'
process:
target_id: '0'
target_revision_id: '1'
# By default the admin will create the people nodes.
uid: 'constants/admin_uid'
field_image:
-
plugin: default_value
source: picture
default_value: null
-
plugin: migration_lookup
migration: agaric_file
migration_dependencies:
optional:
- agaric_file

View file

@ -0,0 +1,25 @@
id: agaric_people_paragraph
migration_group: agaric
label: People Bio paragraph
source:
plugin: d7_user
constants:
admin_uid: 1
text_format: 'full_html'
process:
uid: 'constants/admin_uid'
status: status
created: created
parent_type: "node"
field_text/value: field_bio/0/value
field_text/format: 'constants/text_format'
destination:
plugin: 'entity_reference_revisions:paragraph'
default_bundle: text
dependencies:
enforced:
module:
- paragraphs
migration_dependencies:
required:
- agaric_user