d7_menu_links_translation.yml

Same filename in other branches
  1. 9 core/modules/content_translation/migrations/d7_menu_links_translation.yml
  2. 11.x core/modules/content_translation/migrations/d7_menu_links_translation.yml
core/modules/content_translation/migrations/d7_menu_links_translation.yml

File

core/modules/content_translation/migrations/d7_menu_links_translation.yml

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

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