d6_menu_links.yml

Same filename in other branches
  1. 8.9.x core/modules/menu_link_content/migrations/d6_menu_links.yml
  2. 10 core/modules/menu_link_content/migrations/d6_menu_links.yml
  3. 11.x core/modules/menu_link_content/migrations/d6_menu_links.yml
core/modules/menu_link_content/migrations/d6_menu_links.yml

File

core/modules/menu_link_content/migrations/d6_menu_links.yml

View source
  1. id: d6_menu_links
  2. label: Menu links
  3. audit: true
  4. migration_tags:
  5. - Drupal 6
  6. - Content
  7. source:
  8. plugin: menu_link
  9. process:
  10. skip_localized:
  11. -
  12. plugin: callback
  13. callable: is_null
  14. source: is_localized
  15. -
  16. plugin: skip_on_empty
  17. method: row
  18. id: mlid
  19. title: link_title
  20. description: description
  21. menu_name:
  22. -
  23. plugin: migration_lookup
  24. # The menu migration is in the system module.
  25. migration: d6_menu
  26. source: menu_name
  27. -
  28. plugin: skip_on_empty
  29. method: row
  30. -
  31. plugin: static_map
  32. map:
  33. management: admin
  34. bypass: true
  35. 'link/uri':
  36. plugin: link_uri
  37. source: link_path
  38. 'link/options':
  39. plugin: link_options
  40. source: options
  41. route:
  42. plugin: route
  43. source:
  44. - link_path
  45. - options
  46. route_name: '@route/route_name'
  47. route_parameters: '@route/route_parameters'
  48. url: '@route/url'
  49. options: '@route/options'
  50. external: external
  51. weight: weight
  52. expanded: expanded
  53. enabled: enabled
  54. parent:
  55. plugin: menu_link_parent
  56. source:
  57. - plid
  58. - '@menu_name'
  59. - parent_link_path
  60. changed: updated
  61. destination:
  62. plugin: entity:menu_link_content
  63. default_bundle: menu_link_content
  64. no_stub: true
  65. migration_dependencies:
  66. required:
  67. - d6_menu
  68. optional:
  69. - d6_node

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