migrate_plus.migration.d7_taxonomy_term_company.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. id: d7_taxonomy_term_company
  2. label: Taxonomy terms Company
  3. migration_group: d7_materio
  4. audit: true
  5. migration_tags:
  6. - Drupal 7
  7. - Content
  8. - Materio
  9. deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
  10. source:
  11. plugin: d7_taxonomy_term_company
  12. bundle: company
  13. destination:
  14. plugin: entity:taxonomy_term
  15. process:
  16. # If you are using this file to build a custom migration consider removing
  17. # the tid field to allow incremental migrations.
  18. # tid: tid
  19. vid:
  20. plugin: default_value
  21. default_value: company
  22. name: name
  23. weight: weight
  24. # Only attempt to stub real (non-zero) parents.
  25. parent_id:
  26. -
  27. plugin: skip_on_empty
  28. method: process
  29. source: parent
  30. -
  31. plugin: migration_lookup
  32. migration: d7_taxonomy_term_companie
  33. parent:
  34. plugin: default_value
  35. default_value: 0
  36. source: '@parent_id'
  37. changed: timestamp
  38. langcode:
  39. plugin: default_value
  40. default_value: 'und'
  41. field_migration:
  42. plugin: default_value
  43. default_value: 'migration_imported'
  44. # FROM TODE (linked tode node)
  45. field_website:
  46. plugin: iterator
  47. source: field_website
  48. process:
  49. uri: url
  50. title: title
  51. options: attributes
  52. field_memo: field_memo
  53. field_public_phone: public_phone
  54. field_public_email:
  55. plugin: iterator
  56. source: field_public_email
  57. process:
  58. value: email
  59. field_public_address:
  60. plugin: iterator
  61. source: field_public_address
  62. process:
  63. # langcode:
  64. country_code: country
  65. administrative_area: administrative_area
  66. locality: locality
  67. dependent_locality: dependent_locality
  68. postal_code: postal_code
  69. # sorting_code:
  70. address_line1: thoroughfare
  71. # address_line2:
  72. organization: organisation_name
  73. given_name: first_name
  74. # additional_name:
  75. family_name: last_name
  76. # SOURCES
  77. # sub_administrative_area
  78. # premise
  79. # sub_premise
  80. # name_line
  81. # data
  82. field_note: field_note
  83. field_departement: field_departement
  84. description:
  85. plugin: iterator
  86. source: body
  87. process:
  88. value: value
  89. format:
  90. plugin: default_value
  91. default_value: wysiwyg
  92. field_infos_from_company:
  93. plugin: iterator
  94. source: field_infos_from_company
  95. process:
  96. value: value
  97. format:
  98. plugin: default_value
  99. default_value: wysiwyg
  100. field_workflow:
  101. plugin: static_map
  102. source: workflow
  103. map:
  104. 1: "workflow_creation"
  105. 2: "workflow_hidden"
  106. 3: "workflow_visible"
  107. 4: "workflow_imported"
  108. 5: "workflow_edited"
  109. # work in progress
  110. # not ready
  111. # field_attachments: field_attachments