migrate_plus.migration.d7_node_materiau.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. uuid: b9ed8c19-1a6f-49f0-8a50-2ab147911f5b
  2. langcode: en
  3. status: true
  4. dependencies: { }
  5. id: d7_node_materiau
  6. class: null
  7. field_plugin_method: null
  8. cck_plugin_method: null
  9. migration_tags:
  10. - 'Drupal 7'
  11. - Content
  12. - Materio
  13. migration_group: d7_materio
  14. label: 'Node Materiau'
  15. source:
  16. plugin: d7_node_materiau
  17. node_type: materiau
  18. batch_size: 500
  19. high_water_property:
  20. name: changed
  21. alias: 'n'
  22. process:
  23. type:
  24. plugin: default_value
  25. default_value: materiau
  26. title: title
  27. created: created
  28. changed: changed
  29. uid:
  30. plugin: migration_lookup
  31. migration: d7_users
  32. source: uid
  33. field_short_description: field_nature_titre
  34. field_migration:
  35. plugin: default_value
  36. default_value: migration_imported
  37. body:
  38. plugin: iterator
  39. source: field_description
  40. process:
  41. value: value
  42. format:
  43. plugin: default_value
  44. default_value: wysiwyg
  45. langcode: language
  46. field_memo: field_memo
  47. field_workflow:
  48. -
  49. plugin: default_value
  50. source: workflow
  51. default_value: 2
  52. -
  53. plugin: static_map
  54. default_value: 2
  55. map:
  56. 1: workflow_creation
  57. 2: workflow_hidden
  58. 3: workflow_visible
  59. 4: workflow_imported
  60. 5: workflow_edited
  61. field_thesaurus:
  62. plugin: migration_lookup
  63. migration: d7_taxonomy_term_thesaurus
  64. source: field_onthologie
  65. no_stub: true
  66. field_tags:
  67. plugin: migration_lookup
  68. migration: d7_taxonomy_term_tags
  69. source: field_tags_libres
  70. no_stub: true
  71. field_manufacturer:
  72. plugin: migration_lookup
  73. migration: d7_taxonomy_term_company
  74. source: field_company_fab
  75. no_stub: true
  76. field_distributor:
  77. plugin: migration_lookup
  78. migration: d7_taxonomy_term_company
  79. source: field_company_distrib
  80. no_stub: true
  81. field_video:
  82. plugin: iterator
  83. source: field_video_filter
  84. process:
  85. value: url
  86. field_linked_materials:
  87. -
  88. plugin: skip_on_empty
  89. method: process
  90. source: linked_materials
  91. -
  92. plugin: migration_lookup
  93. migration: d7_node_materiau
  94. no_stub: true
  95. field_linked_articles:
  96. -
  97. plugin: skip_on_empty
  98. method: process
  99. source: linked_articles
  100. -
  101. plugin: migration_lookup
  102. migration: d7_node_article
  103. field_materiau_images:
  104. plugin: iterator
  105. source: field_materiau_image
  106. process:
  107. target_id:
  108. plugin: migration_lookup
  109. migration: d7_allpublicfiles
  110. source: fid
  111. no_stub: true
  112. alt: alt
  113. title: title
  114. height: height
  115. width: width
  116. field_attachments:
  117. plugin: iterator
  118. source: field_attachments
  119. process:
  120. target_id:
  121. plugin: migration_lookup
  122. migration: d7_allpublicfiles
  123. source: fid
  124. no_stub: true
  125. description: description
  126. field_famille: field_famille
  127. field_index: field_identifiant
  128. field_reference: field_reference_materio
  129. field_localisation_old: field_localisation
  130. field_samples:
  131. plugin: iterator
  132. source: field_location
  133. process:
  134. location: location
  135. target_id:
  136. plugin: migration_lookup
  137. migration: d7_taxonomy_term_showroom
  138. source: showroom_tid
  139. no_stub: true
  140. destination:
  141. plugin: 'entity:node'
  142. migration_dependencies:
  143. required:
  144. - d7_allpublicfiles
  145. - d7_users
  146. - d7_taxonomy_term_thesaurus
  147. - d7_taxonomy_term_tags
  148. - d7_taxonomy_term_company
  149. - d7_taxonomy_term_showroom