Needs work
Project:
Workbench
Version:
8.x-1.5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2024 at 21:49 UTC
Updated:
10 Feb 2026 at 13:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
agentrickardToolbar is a core feature.
Comment #3
marc.bauNavigation bar is a Core Module and is default in v11 as I know. It is experimental in 10.3, but honestly it works sooo great - there is no need wait and not using it. This is a massive usability step forward - i install it on every site. No issues yet except Workbench.
Comment #4
agentrickardStill marked as experimental in 11.x
https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/navig...
I'd be happy to review an MR though.
Comment #5
agentrickardI will also note that I reviewed the module and it has no API and no clear means for adding items.
* How do we add a menu group?
* How do we make the menu group expandable?
* How do we add an icon?
I would wait until it is stable and those are provided, as they are in Toolbar now.
Comment #6
marc.bauFrom my understanding this is just core menu api. Add the menu items and routes and we are done… not that complicated.
Comment #7
rtvenge commentedI was able to get the menus added to the Navigation. See attached patch.
This patch doesn't take into account sites still using Toolbar but I wasn't sure how to keep both concurrently (Do I just duplicate all and rename?). Any advice on that would be helpful.
Comment #8
agentrickardWe might have to use dynamic routing to support both. See https://www.drupal.org/docs/drupal-apis/routing-system/providing-dynamic.... With that approach, we could dynamically set the path based on whether Toolbar or Navigation were installed.
I still don't quite understand if Navigation will ever get past its "Experimental" status, especially given https://www.thedroptimes.com/49399/drupal-core-adopt-gin-admin-theme-rep...
Comment #9
agentrickardIt looks like we can use hook_menu_links_discovered_alter()
See #3524476: Support the gin theme for an example.
Comment #10
tomefa commentedThe patch make the workbench menu appear with navigation module.
From Drupal 11.3 release note: https://www.drupal.org/project/drupal/releases/11.3.0
The actual patch is a bit simple and the implementation in https://www.drupal.org/project/workbench/issues/3524476 looks better but actually limited to gin_toolbar.
Would be good to make it similar for the navigation module and also remove the dependency to toolbar as it will be disable in the futur in drupal core.