d6_vocabulary_field_instance.yml

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

File

core/modules/taxonomy/migrations/d6_vocabulary_field_instance.yml

View source
  1. # cspell:ignore localizable
  2. id: d6_vocabulary_field_instance
  3. label: Vocabulary field instance configuration
  4. migration_tags:
  5. - Drupal 6
  6. - Configuration
  7. source:
  8. plugin: d6_taxonomy_vocabulary_per_type
  9. constants:
  10. entity_type: node
  11. auto_create: true
  12. selection_handler: 'default:taxonomy_term'
  13. field_prefix: field_
  14. process:
  15. entity_type: 'constants/entity_type'
  16. bundle:
  17. -
  18. plugin: migration_lookup
  19. migration: d6_node_type
  20. source: type
  21. -
  22. plugin: skip_on_empty
  23. method: row
  24. # This value is only used in the 'field_name' process pipeline below.
  25. raw_field_name:
  26. -
  27. plugin: migration_lookup
  28. migration: d6_taxonomy_vocabulary
  29. source: vid
  30. -
  31. plugin: skip_on_empty
  32. method: row
  33. field_name:
  34. # Prepend field_ to avoid conflicts with base fields, and make sure the
  35. # result is no longer than 32 characters.
  36. -
  37. plugin: concat
  38. source:
  39. - constants/field_prefix
  40. - '@raw_field_name'
  41. -
  42. plugin: substr
  43. length: 32
  44. label: name
  45. _vid:
  46. -
  47. plugin: migration_lookup
  48. migration: d6_taxonomy_vocabulary
  49. source: vid
  50. -
  51. plugin: skip_on_empty
  52. method: row
  53. 'settings/handler': 'constants/selection_handler'
  54. 'settings/handler_settings/target_bundles':
  55. plugin: target_bundle
  56. 'settings/handler_settings/auto_create': 'constants/auto_create'
  57. required: required
  58. # Get the i18n taxonomy translation setting for this vocabulary.
  59. # 0 - No multilingual options
  60. # 1 - Localizable terms. Run through the localization system.
  61. # 2 - Predefined language for a vocabulary and its terms.
  62. # 3 - Per-language terms, translatable (referencing terms with different
  63. # languages) but not localizable.
  64. translatable:
  65. plugin: static_map
  66. source: i18ntaxonomy_vocabulary
  67. default_value: 0
  68. map:
  69. 0: false
  70. 1: true
  71. 2: false
  72. 3: true
  73. destination:
  74. plugin: entity:field_config
  75. migration_dependencies:
  76. required:
  77. - d6_node_type
  78. - d6_vocabulary_field

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