migrate_plus.migration.upgrade_d6_menu_links.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. uuid: a4bfa7da-f050-4522-8d4f-135acccba433
  2. langcode: fr
  3. status: true
  4. dependencies: { }
  5. id: upgrade_d6_menu_links
  6. class: Drupal\migrate\Plugin\Migration
  7. field_plugin_method: null
  8. cck_plugin_method: null
  9. migration_tags:
  10. - 'Drupal 6'
  11. migration_group: migrate_drupal_6
  12. label: 'Menu links'
  13. source:
  14. plugin: menu_link
  15. process:
  16. id: mlid
  17. title: link_title
  18. description: description
  19. menu_name:
  20. -
  21. plugin: migration_lookup
  22. migration: upgrade_d6_menu
  23. source: menu_name
  24. -
  25. plugin: skip_on_empty
  26. method: row
  27. -
  28. plugin: static_map
  29. map:
  30. management: admin
  31. bypass: true
  32. link/uri:
  33. plugin: link_uri
  34. source:
  35. - 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. default_bundle: menu_link_content
  60. no_stub: true
  61. migration_dependencies:
  62. required:
  63. - upgrade_d6_menu
  64. optional: { }