You are here

d6_profile_field_option_translation.yml in Drupal 9

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