You are here

d6_menu_links.yml in Drupal 9

Same filename and directory in other branches
  1. 8 core/modules/menu_link_content/migrations/d6_menu_links.yml
core/modules/menu_link_content/migrations/d6_menu_links.yml

File

core/modules/menu_link_content/migrations/d6_menu_links.yml
View source
  1. id: d6_menu_links
  2. label: Menu links
  3. audit: true
  4. migration_tags:
  5. - Drupal 6
  6. - Content
  7. source:
  8. plugin: menu_link
  9. process:
  10. id: mlid
  11. title: link_title
  12. description: description
  13. menu_name:
  14. -
  15. plugin: migration_lookup
  16. # The menu migration is in the system module.
  17. migration: d6_menu
  18. source: menu_name
  19. -
  20. plugin: skip_on_empty
  21. method: row
  22. -
  23. plugin: static_map
  24. map:
  25. management: admin
  26. bypass: true
  27. 'link/uri':
  28. plugin: link_uri
  29. source: link_path
  30. 'link/options': options
  31. route:
  32. plugin: route
  33. source:
  34. - link_path
  35. - options
  36. route_name: '@route/route_name'
  37. route_parameters: '@route/route_parameters'
  38. url: '@route/url'
  39. options: '@route/options'
  40. external: external
  41. weight: weight
  42. expanded: expanded
  43. enabled: enabled
  44. parent:
  45. plugin: menu_link_parent
  46. source:
  47. - plid
  48. - '@menu_name'
  49. - parent_link_path
  50. changed: updated
  51. destination:
  52. plugin: entity:menu_link_content
  53. default_bundle: menu_link_content
  54. no_stub: true
  55. migration_dependencies:
  56. required:
  57. - d6_menu
  58. optional:
  59. - d6_node