d6_menu_links.yml

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

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