migrate_plus.migration.d7_taxonomy_term_company.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. # FROM TODE (linked tode node)
  39. field_website:
  40. plugin: iterator
  41. source: field_website
  42. process:
  43. uri: url
  44. title: title
  45. options: attributes
  46. field_memo: field_memo
  47. field_public_phone: public_phone
  48. field_public_email:
  49. plugin: iterator
  50. source: field_public_email
  51. process:
  52. value: email
  53. field_public_address:
  54. plugin: iterator
  55. source: field_public_address
  56. process:
  57. # langcode:
  58. country_code: country
  59. administrative_area: administrative_area
  60. locality: locality
  61. dependent_locality: dependent_locality
  62. postal_code: postal_code
  63. # sorting_code:
  64. address_line1: thoroughfare
  65. # address_line2:
  66. organization: organisation_name
  67. given_name: first_name
  68. # additional_name:
  69. family_name: last_name
  70. # SOURCES
  71. # sub_administrative_area
  72. # premise
  73. # sub_premise
  74. # name_line
  75. # data
  76. field_note: field_note
  77. field_departement: field_departement
  78. description:
  79. plugin: iterator
  80. source: body
  81. process:
  82. value: value
  83. format:
  84. plugin: default_value
  85. default_value: wysiwyg
  86. field_infos_from_company:
  87. plugin: iterator
  88. source: field_infos_from_company
  89. process:
  90. value: value
  91. format:
  92. plugin: default_value
  93. default_value: wysiwyg
  94. field_workflow:
  95. plugin: static_map
  96. source: workflow
  97. map:
  98. 1: "workflow_creation"
  99. 2: "workflow_hidden"
  100. 3: "workflow_visible"
  101. 4: "workflow_imported"
  102. 5: "workflow_edited"
  103. # work in progress
  104. # not ready
  105. # field_attachments: field_attachments