d6_menu_links_localized.yml

Same filename in other branches
  1. 9 core/modules/content_translation/migrations/d6_menu_links_localized.yml
  2. 10 core/modules/content_translation/migrations/d6_menu_links_localized.yml
core/modules/content_translation/migrations/d6_menu_links_localized.yml

File

core/modules/content_translation/migrations/d6_menu_links_localized.yml

View source
  1. # cspell:ignore mlid plid
  2. id: d6_menu_links_localized
  3. label: Menu links localized
  4. migration_tags:
  5. - Drupal 6
  6. - Content
  7. - Multilingual
  8. source:
  9. plugin: menu_link
  10. constants:
  11. bundle: menu_link_content
  12. process:
  13. skip_not_localized:
  14. plugin: skip_on_empty
  15. source: is_localized
  16. method: row
  17. id: mlid
  18. title: link_title
  19. description: description
  20. langcode: language
  21. menu_name:
  22. -
  23. plugin: migration_lookup
  24. # The menu migration is in the system module.
  25. migration: d6_menu
  26. source: menu_name
  27. -
  28. plugin: skip_on_empty
  29. method: row
  30. -
  31. plugin: static_map
  32. map:
  33. management: admin
  34. bypass: true
  35. 'link/uri':
  36. plugin: link_uri
  37. source: link_path
  38. 'link/options':
  39. plugin: link_options
  40. source: options
  41. route:
  42. plugin: route
  43. source:
  44. - link_path
  45. - options
  46. route_name: '@route/route_name'
  47. route_parameters: '@route/route_parameters'
  48. url: '@route/url'
  49. options: '@route/options'
  50. external: external
  51. weight: weight
  52. expanded: expanded
  53. enabled: enabled
  54. parent:
  55. plugin: menu_link_parent
  56. source:
  57. - plid
  58. - '@menu_name'
  59. - parent_link_path
  60. changed: updated
  61. destination:
  62. plugin: entity:menu_link_content
  63. no_stub: true
  64. translations: true
  65. destination_module: content_translation
  66. migration_dependencies:
  67. required:
  68. - language
  69. - d6_language_content_menu_settings
  70. - d6_menu_links

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