You are here

d7_menu_links.yml in Zircon Profile 8.0

core/modules/menu_link_content/migration_templates/d7_menu_links.yml

File

core/modules/menu_link_content/migration_templates/d7_menu_links.yml
View source
  1. id: d7_menu_links
  2. label: Menu links
  3. migration_tags:
  4. - Drupal 7
  5. source:
  6. plugin: menu_link
  7. constants:
  8. bundle: menu_link_content
  9. process:
  10. id: mlid
  11. bundle: 'constants/bundle'
  12. title: link_title
  13. description:
  14. plugin: extract
  15. source:
  16. - options
  17. index:
  18. - 0
  19. - attributes
  20. - title
  21. default: ''
  22. menu_name:
  23. plugin: migration
  24. migration: menu
  25. source: menu_name
  26. 'link/uri':
  27. plugin: internal_uri
  28. source:
  29. - 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. -
  46. plugin: skip_on_empty
  47. method: process
  48. source: plid
  49. -
  50. plugin: migration
  51. migration: d7_menu_links
  52. changed: updated
  53. destination:
  54. plugin: entity:menu_link_content
  55. migration_dependencies:
  56. required:
  57. - menu