You are here

d7_field_instance_option_translation.yml in Drupal 9

core/modules/config_translation/migrations/d7_field_instance_option_translation.yml

File

core/modules/config_translation/migrations/d7_field_instance_option_translation.yml
View source
  1. id: d7_field_instance_option_translation
  2. label: Field instance option configuration translation
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. - Multilingual
  7. source:
  8. plugin: d7_field_option_translation
  9. constants:
  10. status: true
  11. process:
  12. langcode:
  13. plugin: skip_on_empty
  14. source: language
  15. method: row
  16. type:
  17. plugin: process_field
  18. source: type
  19. method: getFieldType
  20. entity_type: entity_type
  21. field_name: field_name
  22. # # The bundle needs to be statically mapped in order to support comment types
  23. # # that might already exist before this migration is run. See
  24. # # d7_comment_type.yml for more information.
  25. bundle:
  26. plugin: static_map
  27. source: bundle
  28. bypass: true
  29. map:
  30. comment_node_forum: comment_forum
  31. results:
  32. plugin: d7_field_instance_option_translation
  33. source:
  34. - '@type'
  35. - data
  36. translation:
  37. -
  38. plugin: extract
  39. source: '@results'
  40. index: [1]
  41. -
  42. plugin: skip_on_empty
  43. method: row
  44. property:
  45. -
  46. plugin: extract
  47. source: '@results'
  48. index: [0]
  49. -
  50. plugin: skip_on_empty
  51. method: row
  52. destination:
  53. plugin: entity:field_config
  54. translations: true
  55. migration_dependencies:
  56. required:
  57. - language
  58. - d7_field_instance