d7_field_instance_label_description_translation.yml

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

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