migrate_plus.migration.d7_node_materiau.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. uuid: 36299c73-3088-4a62-b4b1-be7182e881aa
  2. langcode: en
  3. status: true
  4. dependencies: { }
  5. _core:
  6. default_config_hash: rh5NZM-nq2T5x5XOjpaNaHZZFAjkf4nwNthnAEJXN-8
  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. process:
  21. type:
  22. plugin: default_value
  23. default_value: materiau
  24. title: title
  25. field_short_description: field_nature_titre
  26. field_migration:
  27. plugin: default_value
  28. default_value: migration_imported
  29. body:
  30. plugin: iterator
  31. source: field_description
  32. process:
  33. value: value
  34. format:
  35. plugin: default_value
  36. default_value: wysiwyg
  37. langcode: language
  38. field_memo: field_memo
  39. field_workflow:
  40. -
  41. plugin: default_value
  42. source: workflow
  43. default_value: 2
  44. -
  45. plugin: static_map
  46. default_value: 2
  47. map:
  48. 1: workflow_creation
  49. 2: workflow_hidden
  50. 3: workflow_visible
  51. 4: workflow_imported
  52. 5: workflow_edited
  53. field_thesaurus:
  54. plugin: migration_lookup
  55. migration: d7_taxonomy_term_thesaurus
  56. source: field_onthologie
  57. no_stub: true
  58. field_tags:
  59. plugin: migration_lookup
  60. migration: d7_taxonomy_term_tags
  61. source: field_tags_libres
  62. no_stub: true
  63. field_manufacturer:
  64. plugin: migration_lookup
  65. migration: d7_taxonomy_term_company
  66. source: field_company_fab
  67. no_stub: true
  68. field_distributor:
  69. plugin: migration_lookup
  70. migration: d7_taxonomy_term_company
  71. source: field_company_distrib
  72. no_stub: true
  73. field_video:
  74. plugin: iterator
  75. source: field_video_filter
  76. process:
  77. value: url
  78. field_linked_materials:
  79. -
  80. plugin: skip_on_empty
  81. method: process
  82. source: linked_materials
  83. -
  84. plugin: migration_lookup
  85. migration: d7_node_materiau
  86. no_stub: true
  87. field_linked_breves:
  88. -
  89. plugin: skip_on_empty
  90. method: process
  91. source: linked_breves
  92. -
  93. plugin: migration_lookup
  94. migration: d7_node_breve
  95. no_stub: true
  96. field_materiau_images:
  97. plugin: iterator
  98. source: field_materiau_image
  99. process:
  100. target_id:
  101. plugin: migration_lookup
  102. migration: d7_allpublicfiles
  103. source: fid
  104. no_stub: true
  105. alt: alt
  106. title: title
  107. height: height
  108. width: width
  109. field_attachments:
  110. plugin: iterator
  111. source: field_attachments
  112. process:
  113. target_id:
  114. plugin: migration_lookup
  115. migration: d7_allpublicfiles
  116. source: fid
  117. no_stub: true
  118. description: description
  119. field_famille: field_famille
  120. field_index: field_identifiant
  121. field_reference: field_reference_materio
  122. field_localisation_old: field_localisation
  123. field_samples:
  124. plugin: iterator
  125. source: field_location
  126. process:
  127. location: location
  128. target_id:
  129. plugin: migration_lookup
  130. migration: d7_taxonomy_term_showroom
  131. source: showroom_tid
  132. no_stub: true
  133. destination:
  134. plugin: 'entity:node'
  135. migration_dependencies:
  136. required:
  137. - d7_allpublicfiles
  138. - d7_taxonomy_term_thesaurus
  139. - d7_taxonomy_term_tags
  140. - d7_taxonomy_term_company
  141. - d7_taxonomy_term_showroom
  142. optional:
  143. - d7_node_breve