d7_field_option_translation.yml

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

File

core/modules/config_translation/migrations/d7_field_option_translation.yml

View source
  1. id: d7_field_option_translation
  2. label: Field option configuration translation
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. - Multilingual
  7. field_plugin_method: alterFieldMigration
  8. source:
  9. plugin: d7_field_option_translation
  10. process:
  11. langcode:
  12. plugin: skip_on_empty
  13. source: language
  14. method: row
  15. entity_type: entity_type
  16. field_name: field_name
  17. type:
  18. plugin: process_field
  19. source: type
  20. method: getFieldType
  21. results:
  22. plugin: d7_field_option_translation
  23. source:
  24. - '@type'
  25. - data
  26. translation:
  27. -
  28. plugin: extract
  29. source: '@results'
  30. index: [1]
  31. -
  32. plugin: skip_on_empty
  33. method: row
  34. property:
  35. -
  36. plugin: extract
  37. source: '@results'
  38. index: [0]
  39. -
  40. plugin: skip_on_empty
  41. method: row
  42. destination:
  43. plugin: entity:field_storage_config
  44. translations: true
  45. migration_dependencies:
  46. required:
  47. - language
  48. - d7_field

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