You are here

d7_menu_links_translation.yml in Drupal 10

core/modules/content_translation/migrations/d7_menu_links_translation.yml

File

core/modules/content_translation/migrations/d7_menu_links_translation.yml
View source
  1. id: d7_menu_links_translation
  2. label: Menu links
  3. migration_tags:
  4. - Drupal 7
  5. - Content
  6. - Multilingual
  7. source:
  8. plugin: d7_menu_link_translation
  9. process:
  10. exists:
  11. -
  12. plugin: migration_lookup
  13. migration: d7_menu_links
  14. source: mlid
  15. -
  16. plugin: skip_on_empty
  17. method: row
  18. id: mlid
  19. # Use the language from the locales_target table.
  20. langcode: language
  21. title:
  22. -
  23. plugin: callback
  24. source:
  25. - title_translated
  26. - link_title
  27. callable: array_filter
  28. -
  29. plugin: callback
  30. callable: current
  31. description:
  32. -
  33. plugin: callback
  34. source:
  35. - description_translated
  36. - description
  37. callable: array_filter
  38. -
  39. plugin: callback
  40. callable: current
  41. destination:
  42. plugin: entity:menu_link_content
  43. default_bundle: menu_link_content
  44. no_stub: true
  45. translations: true
  46. migration_dependencies:
  47. required:
  48. - language
  49. - d7_language_content_menu_settings
  50. - d7_menu_links