EasyAdminBundle
EasyAdminBundle copied to clipboard
Highlight index menu item for all actions
As mentioned in comment,
this way, an 'index' menu item is highlighted for all actions of the same entity
but currently seems a bug present. Closes https://github.com/EasyCorp/EasyAdminBundle/issues/6108
Tests fails seems unrelated and pass for me on local patch-5
branch
As workaround you can copy vendor/easycorp/easyadmin-bundle/src/Menu/MenuItemMatcher.php
to something like src/Service/EasyAdmin/MenuItemMatcher.php
and edit it.
Then something like
EasyCorp\Bundle\EasyAdminBundle\Contracts\Menu\MenuItemMatcherInterface:
alias: App\Service\EasyAdmin\MenuItemMatcher
in services section in config/services.yaml
Thanks for this by the way :smile: