agaric-coop/web/modules/custom/agaric_migration/migrations/agaric_people.yml
David Valdez 77c6286dbb The field_authors is filled with the people nodes.
If the node was created by Ben then the field_authors field will have
the Ben people node.
2018-10-29 14:02:01 -06:00

43 lines
866 B
YAML

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_lookup
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