d6_vocabulary_entity_form_display.yml

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

File

core/modules/taxonomy/migrations/d6_vocabulary_entity_form_display.yml

View source
  1. id: d6_vocabulary_entity_form_display
  2. label: Vocabulary form 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. form_mode: default
  11. options:
  12. weight: 20
  13. field_prefix: field_
  14. process:
  15. entity_type: 'constants/entity_type'
  16. form_mode: 'constants/form_mode'
  17. options/type:
  18. plugin: static_map
  19. source: tags
  20. map:
  21. 0: options_select
  22. 1: entity_reference_autocomplete_tags
  23. options/weight: 'constants/options/weight'
  24. bundle:
  25. -
  26. plugin: migration_lookup
  27. migration: d6_node_type
  28. source: type
  29. -
  30. plugin: skip_on_empty
  31. method: row
  32. # This value is only used in the 'field_name' process pipeline below.
  33. raw_field_name:
  34. -
  35. plugin: migration_lookup
  36. migration: d6_taxonomy_vocabulary
  37. source: vid
  38. -
  39. plugin: skip_on_empty
  40. method: row
  41. field_name:
  42. # Prepend field_ to avoid conflicts with base fields, and make sure the
  43. # result is no longer than 32 characters.
  44. -
  45. plugin: concat
  46. source:
  47. - constants/field_prefix
  48. - '@raw_field_name'
  49. -
  50. plugin: substr
  51. length: 32
  52. -
  53. # This plugin checks if the vocabulary being migrated is the one used by
  54. # Forum. If so, we use the machine name that Forum expects. Otherwise, we
  55. # leave it unchanged.
  56. plugin: forum_vocabulary
  57. machine_name: taxonomy_forums
  58. destination:
  59. plugin: component_entity_form_display
  60. migration_dependencies:
  61. required:
  62. - d6_vocabulary_field_instance

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