In SonataAdmin, the documentation lists three ways of puting custom items in the menu: by configuration, by menu providers, and by events.
Using configuration (or providers) means specifying groups by hand in config, like this:
sonata_admin:
dashboard:
groups:
news:
label: ~
label_catalogue: ~
items:
- sonata.news.admin.post
- route: blog_home
label: Blog
- route: blog_article
route_params: { articleId: 3 }
label: Article
(https://sonata-project.org/bundles/admin/master/doc/cookbook/recipe_knp_menu.html)
But as soon as you declare a non-empty groups
array in the config, it overrides the auto generated groups, guessed from the Admin Service Pool.
Is there a way to add groups by hand in the config file, while keeping the groups defined by Admin Services?
Thank you everyone for your time.