d7_menu_links.yml

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

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