d6_menu_links_translation.yml

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

File

core/modules/content_translation/migrations/d6_menu_links_translation.yml

View source
  1. # cspell:ignore mlid
  2. id: d6_menu_links_translation
  3. label: Menu links
  4. migration_tags:
  5. - Drupal 6
  6. - Content
  7. - Multilingual
  8. source:
  9. plugin: d6_menu_link_translation
  10. process:
  11. id: mlid
  12. langcode: language
  13. title:
  14. -
  15. plugin: callback
  16. source:
  17. - title_translated
  18. - link_title
  19. callable: array_filter
  20. -
  21. plugin: callback
  22. callable: current
  23. description:
  24. -
  25. plugin: callback
  26. source:
  27. - description_translated
  28. - description
  29. callable: array_filter
  30. -
  31. plugin: callback
  32. callable: current
  33. menu_name:
  34. -
  35. plugin: migration_lookup
  36. # The menu migration is in the system module.
  37. migration: d6_menu
  38. source: menu_name
  39. -
  40. plugin: skip_on_empty
  41. method: row
  42. -
  43. plugin: static_map
  44. map:
  45. management: admin
  46. bypass: true
  47. destination:
  48. plugin: entity:menu_link_content
  49. default_bundle: menu_link_content
  50. no_stub: true
  51. translations: true
  52. migration_dependencies:
  53. required:
  54. - language
  55. - d6_menu
  56. - d6_menu_links

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