migrate_plus.migration.d6_edlp_evenements.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. id: d6_edlp_evenements
  2. label: Edlp Drupal 6 evenement migration
  3. migration_tags:
  4. - Drupal 6
  5. deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
  6. migration_group: d6_edlp
  7. source:
  8. plugin: d6_edlp_evenements
  9. node_type: event
  10. process:
  11. # In D6, nodes always have a tnid, but it's zero for untranslated nodes.
  12. # We normalize it to equal the nid in that case.
  13. # @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow().
  14. # If you are using this file to build a custom migration consider removing
  15. # the nid and vid fields to allow incremental migrations.
  16. # nid: tnid
  17. # vid: vid
  18. type:
  19. plugin: default_value
  20. default_value: evenement
  21. langcode:
  22. plugin: default_value
  23. source: language
  24. default_value: "und"
  25. title:
  26. -
  27. plugin: get
  28. source: title
  29. -
  30. plugin: skip_on_empty
  31. method: row
  32. # this is not working :(
  33. uid:
  34. -
  35. plugin: migration_lookup
  36. migration: d6_edlp_users
  37. source: node_uid
  38. -
  39. plugin: default_value
  40. default_value: 1
  41. # status: status
  42. created: created
  43. changed: changed
  44. promote: promote
  45. sticky: sticky
  46. revision_uid: revision_uid
  47. revision_log: log
  48. revision_timestamp: timestamp
  49. 'body/value': body
  50. 'body/format':
  51. plugin: default_value
  52. default_value: wysiwyg
  53. # workflow
  54. status:
  55. plugin: static_map
  56. source: workflow
  57. map:
  58. 1: 0
  59. 2: 0
  60. 3: 1
  61. 4: 1
  62. field_date: field_date
  63. destination:
  64. plugin: entity:node
  65. migration_dependencies:
  66. required:
  67. - d6_edlp_users