Add a method for moving or copying a menu item from one menu to another

Created on 23 February 2024, 4 months ago

Problem/Motivation

It would be helpful to have a pair of methods that can move or copy a menu item (and optionally its children) from one menu to another.

moveMenuItemToOtherMenu(string $menu_item_name, string $parent_name,  string $new_menu_name, string $new_parent_name, bool $bring_children)

copyMenuItemToOtherMenu(string $menu_item_name, string $parent_name,  string $new_menu_name, string $new_parent_name, bool $bring_children)

The $parent_name is mainly to assist in targeting the finding of the original menu item. Any additional moving to tuck the menu item next to a sibling could be done with a separate call to changeMenuItem() or changeMenuItemSibling().

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024