migrate_plus.migration.upgrade_d6_vocabulary_field.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. uuid: 232b7efe-1c35-4653-a673-97eb06028f61
  2. langcode: fr
  3. status: true
  4. dependencies: { }
  5. id: upgrade_d6_vocabulary_field
  6. class: Drupal\migrate\Plugin\Migration
  7. field_plugin_method: null
  8. cck_plugin_method: null
  9. migration_tags:
  10. - 'Drupal 6'
  11. migration_group: migrate_drupal_6
  12. label: 'Vocabulary field configuration'
  13. source:
  14. plugin: d6_taxonomy_vocabulary
  15. constants:
  16. entity_type: node
  17. type: entity_reference
  18. target_entity_type: taxonomy_term
  19. field_prefix: field_
  20. process:
  21. entity_type: constants/entity_type
  22. type: constants/type
  23. raw_field_name:
  24. -
  25. plugin: migration_lookup
  26. migration: upgrade_d6_taxonomy_vocabulary
  27. source: vid
  28. -
  29. plugin: skip_on_empty
  30. method: row
  31. field_name:
  32. -
  33. plugin: concat
  34. source:
  35. - constants/field_prefix
  36. - '@raw_field_name'
  37. -
  38. plugin: substr
  39. length: 32
  40. -
  41. plugin: forum_vocabulary
  42. machine_name: taxonomy_forums
  43. settings/target_type: constants/target_entity_type
  44. cardinality: cardinality
  45. destination:
  46. plugin: 'entity:field_storage_config'
  47. dependencies:
  48. module:
  49. - entity_reference
  50. migration_dependencies:
  51. required:
  52. - upgrade_d6_taxonomy_vocabulary
  53. optional: { }