Change record status: 
Project: 
Introduced in branch: 
4.1.x
Introduced in version: 
4.1.0
Description: 

Description

A new export destination plugin called "AnotherMenu" has been added to facilitate cloning menu hierarchies directly from one menu to another within the same site, without requiring intermediate files.

What's new

When creating or editing a Menu Export entity, you'll now see a new option "Another Menu" in the Export Destination dropdown, alongside the existing "Download" and "Codebase" options.

How to use (UI)

  • Navigate to Configuration → Development → Menu Migration → Menu exports
  • Click "Add menu export"
  • Select "Another Menu" as the Export Destination
  • Choose "Raw" as the Format (the only available option)
  • Select the source menu you want to clone from
  • Under "Menu selection", choose:
    • "Use existing menu" - Clone to an existing menu (select from Target menu list)
    • "Create new menu" - Create a new menu on the fly with a custom machine name
  • Save and execute the export
  • The source menu's complete hierarchy will be cloned to the target menu.

Configuration example

For developers creating export types programmatically:

destination: another_menu
destination_config:
  format: raw
  source_menu: main
  target_menu: footer
Impacts: 
Site builders, administrators, editors
Module developers