d6_profile_field_option_translation.yml

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

File

core/modules/config_translation/migrations/d6_profile_field_option_translation.yml

View source
  1. # cspell:ignore objectid
  2. id: d6_profile_field_option_translation
  3. label: Profile field configuration
  4. migration_tags:
  5. - Drupal 6
  6. - Configuration
  7. - Multilingual
  8. source:
  9. plugin: d6_profile_field_option_translation
  10. skip_count: true
  11. constants:
  12. entity_type: user
  13. process:
  14. entity_type: 'constants/entity_type'
  15. status: active
  16. langcode:
  17. plugin: skip_on_empty
  18. source: language
  19. method: row
  20. field_name: objectid
  21. # Use the process from user_profile_field to determine the field type.
  22. type:
  23. plugin: static_map
  24. source: type
  25. map:
  26. selection: list_string
  27. results:
  28. plugin: d6_profile_field_option_translation
  29. source:
  30. - '@type'
  31. - translation
  32. translation:
  33. -
  34. plugin: extract
  35. source: '@results'
  36. index: [1]
  37. -
  38. plugin: skip_on_empty
  39. method: row
  40. property:
  41. -
  42. plugin: extract
  43. source: '@results'
  44. index: [0]
  45. -
  46. plugin: skip_on_empty
  47. method: row
  48. destination:
  49. plugin: entity:field_storage_config
  50. translations: true
  51. migration_dependencies:
  52. required:
  53. - language
  54. - user_profile_field_instance

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