d6_vocabulary_entity_display.yml

Same filename in other branches
  1. 8.9.x core/modules/taxonomy/migrations/d6_vocabulary_entity_display.yml
  2. 10 core/modules/taxonomy/migrations/d6_vocabulary_entity_display.yml
  3. 11.x core/modules/taxonomy/migrations/d6_vocabulary_entity_display.yml
core/modules/taxonomy/migrations/d6_vocabulary_entity_display.yml

File

core/modules/taxonomy/migrations/d6_vocabulary_entity_display.yml

View source
  1. id: d6_vocabulary_entity_display
  2. label: Vocabulary display configuration
  3. migration_tags:
  4. - Drupal 6
  5. - Configuration
  6. source:
  7. plugin: d6_taxonomy_vocabulary_per_type
  8. constants:
  9. entity_type: node
  10. view_mode: default
  11. options:
  12. label: hidden
  13. type: entity_reference_label
  14. weight: 20
  15. field_prefix: field_
  16. process:
  17. entity_type: 'constants/entity_type'
  18. view_mode: 'constants/view_mode'
  19. options: 'constants/options'
  20. bundle:
  21. -
  22. plugin: migration_lookup
  23. migration: d6_node_type
  24. source: type
  25. -
  26. plugin: skip_on_empty
  27. method: row
  28. # This value is only used in the 'field_name' process pipeline below.
  29. raw_field_name:
  30. -
  31. plugin: migration_lookup
  32. migration: d6_taxonomy_vocabulary
  33. source: vid
  34. -
  35. plugin: skip_on_empty
  36. method: row
  37. field_name:
  38. # Prepend field_ to avoid conflicts with base fields, and make sure the
  39. # result is no longer than 32 characters.
  40. -
  41. plugin: concat
  42. source:
  43. - constants/field_prefix
  44. - '@raw_field_name'
  45. -
  46. plugin: substr
  47. length: 32
  48. -
  49. # This plugin checks if the vocabulary being migrated is the one used by
  50. # Forum. If so, we use the machine name that Forum expects. Otherwise, we
  51. # leave it unchanged.
  52. plugin: forum_vocabulary
  53. machine_name: taxonomy_forums
  54. destination:
  55. plugin: component_entity_display
  56. migration_dependencies:
  57. required:
  58. - d6_vocabulary_field_instance

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.