Problem/Motivation
The goal here is to make menu trees workspace specific, i.e. allowing different versions of menu trees in different workspaces via the menu form. This is currently not possible, see also the issue here: #3040258: Menu link content changes are not visible on non-live workspaces
Proposed resolution
Build a menu tree storage dealing with just only menu_link_content entities, which support revisions. The menu tree can then be calculated based on those entities only as they provide a weight and a parent inside the tree. Altering of the core menu form and some other menu related services like the MenuLinkTree and MenuLinkTreeManipulator will be required as well.
Remaining tasks
Support parameters in custom tree storageCode cleanup- Address reviews
Issue fork wse-3300898
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3300898-tree_entity__decorated_storage
changes, plain diff MR !47
- 3300898-tree_entity
compare
- 3300898-tree_entity__resets_wip
compare
- 3300898-tree_entity-b4-rebase
compare
- 3300898-no-menu-edits-live
compare
- wse_menu_cleanup
compare
- 3300898-workspace-specific-menus
changes, plain diff MR !29
Comments
Comment #3
s_leu commentedComment #4
s_leu commentedComment #9
amateescu commentedFinally merged this! Leaving the issue open for some cleanup that still needs to happen :)
Comment #10
amateescu commentedThat cleanup happened a while ago.