You are here

d7_menu_links.yml in Drupal 8

Same filename and directory in other branches
  1. 9 core/modules/menu_link_content/migrations/d7_menu_links.yml
core/modules/menu_link_content/migrations/d7_menu_links.yml

File

core/modules/menu_link_content/migrations/d7_menu_links.yml
View source
  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: link_path
  27. 'link/options': options
  28. route:
  29. plugin: route
  30. source:
  31. - link_path
  32. - options
  33. route_name: '@route/route_name'
  34. route_parameters: '@route/route_parameters'
  35. url: '@route/url'
  36. options: '@route/options'
  37. external: external
  38. weight: weight
  39. expanded: expanded
  40. enabled: enabled
  41. parent:
  42. plugin: menu_link_parent
  43. source:
  44. - plid
  45. - '@menu_name'
  46. - parent_link_path
  47. changed: updated
  48. destination:
  49. plugin: entity:menu_link_content
  50. no_stub: true
  51. migration_dependencies:
  52. required:
  53. - d7_menu
  54. optional:
  55. - d7_node