migrate_plus.migration.d7_node_materiau.yml 3.4 KB

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