d6_vocabulary_field.yml

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

File

core/modules/taxonomy/migrations/d6_vocabulary_field.yml

View source
  1. id: d6_vocabulary_field
  2. label: Vocabulary field configuration
  3. migration_tags:
  4. - Drupal 6
  5. - Configuration
  6. source:
  7. plugin: d6_taxonomy_vocabulary
  8. constants:
  9. entity_type: node
  10. type: entity_reference
  11. target_entity_type: taxonomy_term
  12. field_prefix: field_
  13. process:
  14. entity_type: 'constants/entity_type'
  15. type: 'constants/type'
  16. # This value is only used in the 'field_name' process pipeline below.
  17. raw_field_name:
  18. -
  19. plugin: migration_lookup
  20. migration: d6_taxonomy_vocabulary
  21. source: vid
  22. -
  23. plugin: skip_on_empty
  24. method: row
  25. field_name:
  26. # Prepend field_ to avoid conflicts with base fields, and make sure the
  27. # result is no longer than 32 characters.
  28. -
  29. plugin: concat
  30. source:
  31. - constants/field_prefix
  32. - '@raw_field_name'
  33. -
  34. plugin: substr
  35. length: 32
  36. 'settings/target_type': 'constants/target_entity_type'
  37. cardinality: cardinality
  38. destination:
  39. plugin: entity:field_storage_config
  40. dependencies:
  41. module:
  42. - entity_reference
  43. migration_dependencies:
  44. required:
  45. - d6_taxonomy_vocabulary

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