You are here

d6_menu_links_localized.yml in Drupal 10

core/modules/content_translation/migrations/d6_menu_links_localized.yml

File

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