migrate_plus.migration.d7_user_profile_customer.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. id: d7_user_profile_customer
  2. label: D7 User Customer Profile
  3. migration_group: d7_materio
  4. audit: true
  5. migration_tags:
  6. - Drupal 7
  7. - Content
  8. - Materio
  9. source:
  10. plugin: d7_user_profile_customer
  11. batch_size: 1000
  12. destination:
  13. plugin: entity:profile
  14. process:
  15. # id: pid
  16. # label: label
  17. type:
  18. plugin: default_value
  19. default_value: customer
  20. # -
  21. # plugin: skip_on_value
  22. # equals: true
  23. # source: type
  24. # method: row
  25. # value:
  26. # - contact_operationnel
  27. # -
  28. # plugin: static_map
  29. # source: type
  30. # map:
  31. # adherent: customer
  32. uid:
  33. plugin: migration_lookup
  34. migration: d7_users
  35. source: uid
  36. phone: billing_phone
  37. address/country_code: billing_country
  38. address/administrative_area: billing_zone
  39. address/locality: billing_city
  40. # address/dependent_locality: dependent_locality
  41. address/postal_code: billing_postal_code
  42. # address/sorting_code:
  43. address/address_line1: billing_street1
  44. address/address_line2: billing_street2
  45. address/organization: billing_company
  46. address/given_name: billing_first_name
  47. # address/additional_name:
  48. address/family_name: billing_last_name
  49. # address:
  50. # plugin: iterator
  51. # source: field_adresse
  52. # process:
  53. # # langcode:
  54. # country_code: country
  55. # administrative_area: administrative_area
  56. # locality: locality
  57. # dependent_locality: dependent_locality
  58. # postal_code: postal_code
  59. # # sorting_code:
  60. # address_line1: thoroughfare
  61. # # address_line2:
  62. # organization: organisation_name
  63. # given_name: first_name
  64. # # additional_name:
  65. # family_name: last_name
  66. # # SOURCES
  67. # # sub_administrative_area
  68. # # premise
  69. # # sub_premise
  70. # # name_line
  71. # # data
  72. # body:
  73. # plugin: iterator
  74. # source: field_description
  75. # process:
  76. # value: value
  77. # format:
  78. # plugin: default_value
  79. # default_value: wysiwyg
  80. tax_number:
  81. plugin: iterator
  82. source: field_vat_number_intra_ce
  83. process:
  84. value: value
  85. type:
  86. plugin: default_value
  87. default_value: EU
  88. migration_dependencies:
  89. required:
  90. - d7_users
  91. dependencies:
  92. enforced:
  93. module:
  94. - migrate_plus
  95. - migrate_tools
  96. - profile