d6_field_instance_label_description_translation.yml

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

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