Possibility to display menu inside "Administration" menu instead of toolbar

Created on 29 June 2021, over 3 years ago
Updated 2 July 2024, 5 months ago

For some reason we wanted to display our custom menus inside the Drupal Admin menu instead of the Toolbar so we made a patch inspired by custom_admin_menu module so we could use toolbar_menu interface to choose menus, label them, set permissions and we add a boolean field on the ToolbarMenuElement entity to choose if it is displayed in toolbar or in administration menu.

Here is the toolbar menu element form with the new checkbox

See the menu element in the toolbar (Gin theme)

See the menu element in the Administration menu (Gin Theme)

We use the Gin theme with these modules:

toolbar
admin_toolbar
gin_toolbar
toolbar_menu

This patch needs to be improved obviously but we wanted to share this first step if anyone is interested in contributing.

Feature request
Status

RTBC

Version

3.0

Component

Code

Created by

🇧🇪Belgium davidiio

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024