migrate_plus.migration.d7_taxonomy_term_company.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. # plugin: iterator
  49. # source: field_public_phone
  50. # process:
  51. # value: number
  52. # # ??: country_codes
  53. # # ??: extension
  54. field_public_email: field_public_email
  55. field_departement: field_departement
  56. field_description: body
  57. # 'description/value': description
  58. # 'description/format': format
  59. field_infos_from_company: field_infos_from_company
  60. field_public_address: field_public_address
  61. field_note: field_note
  62. field_attachments: field_attachments
  63. # workflow ??