migrate_plus.migration.upgrade_d6_vocabulary_entity_display.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. uuid: 902fad1a-be2c-4ecb-bb5f-81dd5fdaae84
  2. langcode: fr
  3. status: true
  4. dependencies: { }
  5. id: upgrade_d6_vocabulary_entity_display
  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 display configuration'
  13. source:
  14. plugin: d6_taxonomy_vocabulary_per_type
  15. constants:
  16. entity_type: node
  17. view_mode: default
  18. options:
  19. label: hidden
  20. type: entity_reference_label
  21. weight: 20
  22. field_prefix: field_
  23. process:
  24. entity_type: constants/entity_type
  25. view_mode: constants/view_mode
  26. options: constants/options
  27. bundle:
  28. -
  29. plugin: migration_lookup
  30. migration: upgrade_d6_node_type
  31. source: type
  32. -
  33. plugin: skip_on_empty
  34. method: row
  35. raw_field_name:
  36. -
  37. plugin: migration_lookup
  38. migration: upgrade_d6_taxonomy_vocabulary
  39. source: vid
  40. -
  41. plugin: skip_on_empty
  42. method: row
  43. field_name:
  44. -
  45. plugin: concat
  46. source:
  47. - constants/field_prefix
  48. - '@raw_field_name'
  49. -
  50. plugin: substr
  51. length: 32
  52. -
  53. plugin: forum_vocabulary
  54. machine_name: taxonomy_forums
  55. destination:
  56. plugin: component_entity_display
  57. migration_dependencies:
  58. required:
  59. - upgrade_d6_vocabulary_field_instance
  60. optional: { }