- πΊπΈUnited States tenten71
Hello, leymannx.
I'm trying to include your "tab" link in a custom, hard-coded backend menu I've designed in order to replace the admin_toolbar. Unfortunately, just copying your module's rendered HTML and pasting it into my template doesn't work and I think it's because of the "token" element in the URL.
Is there any easy way to produce a standalone link for this function that could be placed anywhere?
Appreciate any help. - leymannx Berlin
You need to create the link from the route, I think. Try:
<a href="{{ path('rebuild_cache_access.rebuild_cache' }}">Rebuild cache</a>
- leymannx Berlin
And the current user needs to have a role with the
rebuild cache access
permission, of course.