You are here

d7_field_instance_label_description_translation.yml in Drupal 9

core/modules/config_translation/migrations/d7_field_instance_label_description_translation.yml

File

core/modules/config_translation/migrations/d7_field_instance_label_description_translation.yml
View source
  1. id: d7_field_instance_label_description_translation
  2. label: Field label and description translation
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. - Multilingual
  7. class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
  8. field_plugin_method: alterFieldInstanceMigration
  9. source:
  10. plugin: d7_field_instance_label_description_translation
  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. entity_type_exists:
  21. plugin: skip_on_empty
  22. source: entity_type
  23. method: row
  24. objectid_exists:
  25. plugin: skip_on_empty
  26. source: objectid
  27. method: row
  28. type_exists:
  29. plugin: skip_on_empty
  30. source: type
  31. method: row
  32. exists:
  33. -
  34. plugin: migration_lookup
  35. migration: d7_field_instance
  36. source:
  37. - entity_type
  38. - objectid
  39. - type
  40. -
  41. plugin: skip_on_empty
  42. method: row
  43. bundle: objectid
  44. property:
  45. plugin: static_map
  46. source: property
  47. bypass: true
  48. map:
  49. label: label
  50. description: description
  51. title_value: label
  52. entity_type: entity_type
  53. field_name: type
  54. destination:
  55. plugin: entity:field_config
  56. migration_dependencies:
  57. required:
  58. - language
  59. - d7_field_instance
  60. optional:
  61. - d7_node_type
  62. - d7_comment_type
  63. - d7_taxonomy_vocabulary