- Issue created by @kevinvb
- Merge request !36#3494771 - use menu collection route for collection instead of edit form → (Open) created by Unnamed author
- 🇧🇪Belgium kevinvb
Added MR with this small change to fix the issue for menus.
When trying to group menus using the hook_admin_toolbar_content_collections() a fatal error is thrown:
Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("menu") to generate a URL for route "entity.menu.edit_form".
Use 2.1.0 version of this module.
Create a custom module implementing the hook_admin_toolbar_content_collections()
Uses the 'menus' functionality to group menus
Clear cache
Load any page as logged in user which have access to the toolbar
The error will be thrown
A bug in AdminToolbarContentMenusPlugin results in this error because here the edit form is used instead of the collection link. Resulting in the missing required parameter.
Patch
New release
Active
2.0
Code
Added MR with this small change to fix the issue for menus.