You are here

d6_field_instance_label_description_translation.yml in Drupal 9

core/modules/config_translation/migrations/d6_field_instance_label_description_translation.yml

File

core/modules/config_translation/migrations/d6_field_instance_label_description_translation.yml
View source
  1. id: d6_field_instance_label_description_translation
  2. label: Field label and description translation
  3. migration_tags:
  4. - Drupal 6
  5. - Configuration
  6. - Multilingual
  7. source:
  8. plugin: d6_field_instance_label_description_translation
  9. constants:
  10. entity_type: node
  11. process:
  12. langcode:
  13. plugin: skip_on_empty
  14. source: language
  15. method: row
  16. translation:
  17. plugin: skip_on_empty
  18. source: translation
  19. method: row
  20. field_name_parts:
  21. plugin: explode
  22. source: objectid
  23. delimiter: '-'
  24. field_name:
  25. plugin: extract
  26. source: '@field_name_parts'
  27. index:
  28. - 1
  29. bundle:
  30. plugin: extract
  31. source: '@field_name_parts'
  32. index:
  33. - 0
  34. exists:
  35. -
  36. plugin: migration_lookup
  37. migration: d6_field_instance
  38. source:
  39. - '@field_name'
  40. - '@bundle'
  41. -
  42. plugin: skip_on_empty
  43. method: row
  44. entity_type: 'constants/entity_type'
  45. property:
  46. plugin: static_map
  47. source: property
  48. bypass: true
  49. map:
  50. widget_label: label
  51. widget_description: description
  52. destination:
  53. plugin: entity:field_config
  54. translations: true
  55. migration_dependencies:
  56. required:
  57. - d6_field_instance
  58. - language