123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- id: d6_edlp_sons
- label: Edlp Drupal 6 sons
- migration_tags:
- - Drupal 6
- deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
- migration_group: d6_edlp
- source:
- plugin: d6_edlp_sons
- node_type: son
- process:
- # In D6, nodes always have a tnid, but it's zero for untranslated nodes.
- # We normalize it to equal the nid in that case.
- # @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow().
- # If you are using this file to build a custom migration consider removing
- # the nid and vid fields to allow incremental migrations.
- # nid: tnid
- # vid: vid
- type:
- plugin: default_value
- default_value: autre_son
- langcode:
- plugin: default_value
- source: language
- default_value: "und"
- title:
- -
- plugin: get
- source: title
- -
- plugin: skip_on_empty
- method: row
- uid:
- -
- plugin: migration_lookup
- migration: d6_edlp_users
- source: node_uid
- -
- plugin: default_value
- default_value: 1
- # status: status
- created: created
- changed: changed
- promote: promote
- sticky: sticky
- revision_uid: revision_uid
- revision_log: log
- revision_timestamp: timestamp
- # body
- 'body/value': body
- 'body/format':
- plugin: default_value
- default_value: wysiwyg
- # field_genre -> field_genres
- field_genres:
- plugin: migration_lookup
- migration: d6_edlp_genres
- source: genres
- # field_artiste: field_locuteurs
- # text -> entity ref terms
- # instead of entity_generate, i create the term in prepareRow from plugin
- field_locuteurs: locuteurs
- # field_compositeur: field_collectionneurs
- # text -> entity ref terms
- # instead of entity_generate, i create the term in prepareRow from plugin
- field_collectionneurs: collectionneurs
- # # file
- # # field_mp3 -> field_son
- field_son:
- plugin: migration_lookup
- migration: d6_edlp_allfiles
- source: sons_fid
- # workflow
- status:
- plugin: static_map
- source: workflow
- map:
- 1: 0
- 2: 0
- 3: 1
- 4: 1
- destination:
- plugin: entity:node
- migration_dependencies:
- required:
- - d6_edlp_users
- - d6_edlp_entrees
- - d6_edlp_genres
- - d6_edlp_langues
- - d6_edlp_allfiles
|