Question: How to define a custom menu and show it like an admin menu in Drupal 8 ?
First of all, we have a custom administration theme where we are looking for a custom toolbar solution that stays visible for an "simple" user on the front and backend when logged in.
There is a need for a toolbar at top of page similar like the toolbar module in Drupal 8 core.
We want the following links shows to a user :
- Back to site
- User with possibility to view and edit their profile
- The Edit option for edit content from the front of the site
Screenshot of the goal :
I have found there are several solutions for Drupal 7 with modules like Admin menu source, Webmaster menu and with Block Class styles module. But none of them is compatible for using in Drupal 8.
This custom toolbar should only be for specific user roles("user") showed. I will do this by creating an custom module but I'm not really sure if I need to inherit from the toolbar core module in Drupal 8.
A complete new toolbar
I can work further on the default toolbar module in Drupal 8 but there is a need for 2 things: add item "boutique" as example that is decribed as an answer but also remove an item from the default toolbar like Devel or Manage tab included the sub links from these items.
Are the two things together not possible then I prefer for creating a completely new toolbar module from scratch for Drupal 8.
- Not hide or show items based on permissions
- Not just adding items to the default drupal 8 toolbar module
Is that possible ? Are they better/other methods for achieving this goal ?