d7_menu_links.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. id: d7_menu_links
  2. label: Menu links
  3. audit: true
  4. migration_tags:
  5. - Drupal 7
  6. - Content
  7. source:
  8. plugin: menu_link
  9. constants:
  10. bundle: menu_link_content
  11. process:
  12. id: mlid
  13. bundle: 'constants/bundle'
  14. title: link_title
  15. description: description
  16. menu_name:
  17. -
  18. plugin: migration_lookup
  19. migration: d7_menu
  20. source: menu_name
  21. -
  22. plugin: skip_on_empty
  23. method: row
  24. 'link/uri':
  25. plugin: link_uri
  26. source:
  27. - link_path
  28. 'link/options': options
  29. route:
  30. plugin: route
  31. source:
  32. - link_path
  33. - options
  34. route_name: '@route/route_name'
  35. route_parameters: '@route/route_parameters'
  36. url: '@route/url'
  37. options: '@route/options'
  38. external: external
  39. weight: weight
  40. expanded: expanded
  41. enabled: enabled
  42. parent:
  43. plugin: menu_link_parent
  44. source:
  45. - plid
  46. - '@menu_name'
  47. - parent_link_path
  48. changed: updated
  49. destination:
  50. plugin: entity:menu_link_content
  51. no_stub: true
  52. migration_dependencies:
  53. required:
  54. - d7_menu
  55. optional:
  56. - d7_node