migrate_plus.migration.d7_simplenews_nodes.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. id: d7_simplenews_nodes
  2. migration_group: d7_materio
  3. dependencies:
  4. module:
  5. - migrate_drupal
  6. - simplenews
  7. label: Simplenews newsletters nodes
  8. migration_tags:
  9. - Drupal 7
  10. - Content
  11. - Materio
  12. source:
  13. plugin: d7_simplenews_nodes
  14. node_type: simplenews
  15. high_water_property:
  16. name: changed
  17. alias: n
  18. destination:
  19. plugin: entity:node
  20. process:
  21. # nid
  22. type:
  23. plugin: default_value
  24. default_value: simplenews_issue
  25. title: title
  26. created: created
  27. changed: changed
  28. uid:
  29. plugin: migration_lookup
  30. migration: d7_users
  31. source: uid
  32. field_migration:
  33. plugin: default_value
  34. default_value: 'migration_imported'
  35. body:
  36. plugin: iterator
  37. source: body
  38. process:
  39. value: value
  40. format:
  41. plugin: default_value
  42. default_value: wysiwyg
  43. langcode: language
  44. field_workflow:
  45. -
  46. plugin: default_value
  47. source: workflow
  48. default_value: 2
  49. -
  50. plugin: static_map
  51. default_value: 2
  52. map:
  53. 1: "workflow_creation"
  54. 2: "workflow_hidden"
  55. 3: "workflow_visible"
  56. 4: "workflow_imported"
  57. 5: "workflow_edited"
  58. simplenews_issue:
  59. -
  60. plugin: extract
  61. source: field_simplenews_term
  62. index:
  63. - 0
  64. - tid
  65. -
  66. plugin: static_map
  67. map:
  68. 6585: "test"
  69. 6374: "ze_daily_materio_"
  70. 6274: "materio_newsletter"
  71. 7881: "companies"
  72. # Sent status
  73. migration_dependencies:
  74. required:
  75. - d7_allpublicfiles
  76. - d7_users