d7_menu_links.yml

Same filename in other branches
  1. 8.9.x core/modules/menu_link_content/migrations/d7_menu_links.yml
  2. 10 core/modules/menu_link_content/migrations/d7_menu_links.yml
  3. 11.x 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. skip_translation:
  13. plugin: skip_on_empty
  14. method: row
  15. source: skip_translation
  16. id: mlid
  17. langcode:
  18. plugin: default_value
  19. source: language
  20. default_value: und
  21. bundle: 'constants/bundle'
  22. title: link_title
  23. description: description
  24. menu_name:
  25. -
  26. plugin: migration_lookup
  27. migration: d7_menu
  28. source: menu_name
  29. -
  30. plugin: skip_on_empty
  31. method: row
  32. 'link/uri':
  33. plugin: link_uri
  34. source: link_path
  35. 'link/options': options
  36. route:
  37. plugin: route
  38. source:
  39. - link_path
  40. - options
  41. route_name: '@route/route_name'
  42. route_parameters: '@route/route_parameters'
  43. url: '@route/url'
  44. options: '@route/options'
  45. external: external
  46. weight: weight
  47. expanded: expanded
  48. enabled: enabled
  49. parent:
  50. plugin: menu_link_parent
  51. source:
  52. - plid
  53. - '@menu_name'
  54. - parent_link_path
  55. changed: updated
  56. destination:
  57. plugin: entity:menu_link_content
  58. no_stub: true
  59. migration_dependencies:
  60. required:
  61. - d7_menu
  62. optional:
  63. - d7_node

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