- Issue created by @clgarciab
- 🇦🇺Australia nterbogt
This ticket is best placed on the admin_toolbar module rather than core.
That said, you can't currently override a deriver as far as I'm aware. The code to do that doesn't exist, see ✨ Allow base plugin definition to be altered before derived Active .
You can however override the menu links by using a module hook. Here is an example from our codebase.
/** * Implements hook_menu_links_discovered_alter(). */ function MY_MODULE_menu_links_discovered_alter(&$links) { foreach ($links as $route_name => $link) { // Remove all the individual views from the menu. if (\str_starts_with($route_name, 'admin_toolbar_tools.extra_links:views_ui') && !\in_array($route_name, ['admin_toolbar_tools.extra_links:views_ui.add', 'admin_toolbar_tools.extra_links:views_ui.field_list'])) { unset($links[$route_name]); } } }