- Issue created by @alieffring
- ๐บ๐ธUnited States alieffring
Adds hook_admin_toolbar_extra_links_alter()
- ๐ฉ๐ชGermany ammaletu Bonn, Germany
I would very much appreciate this addition. The ExtraLinks class unfortunately adds some links which are unncessary and duplicate, and I haven't found a built-in way to remove them.
It works with the patch #2 and a hook like this:
/**
* Implements hook_admin_toolbar_extra_links_alter().
*/
function mymodule_admin_toolbar_extra_links_alter(&$links): void {
unset($links['media_library']);
} - ๐ฉ๐ชGermany ammaletu Bonn, Germany
I guess for this to be merged we need a test, right?
- ๐ฎ๐ณIndia prashant.c Dharamshala
Prashant.c โ made their first commit to this issueโs fork.
- Status changed to Needs work
about 1 year ago 9:17am 12 December 2023 - ๐ฎ๐ณIndia prashant.c Dharamshala
Thanks @alieffring and @Ammaletu.
Pushed the code by creating a issue fork, some documentation work is required inadmin_toolbar_tools/admin_toolbar_tools.api.php
.