- Issue created by @marc.bau
- π©πͺGermany marc.bau
Navigation 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.
- πΊπΈUnited States agentrickard Georgia (US)
Still 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.
- πΊπΈUnited States agentrickard Georgia (US)
I will also note that I reviewed the module and it has no API and no clear means for adding items.
I would wait until it is stable and those are provided, as they are in Toolbar now.
- π©πͺGermany marc.bau
From my understanding this is just core menu api. Add the menu items and routes and we are done⦠not that complicated.
- πΊπΈUnited States rtvenge
I 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.
- πΊπΈUnited States agentrickard Georgia (US)
We 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...
- πΊπΈUnited States agentrickard Georgia (US)
It looks like we can use hook_menu_links_discovered_alter()
See β¨ Support the gin theme Active for an example.