Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Now if you want to clean the Views cache you need to go to Administration -> Structure -> Views -> Views settings (/admin/structure/views/settings/advanced) but we can have the same functionality in the Flush all caches submenu.
Proposed resolution
Add a new menu link to Clean views cache.
Test pages
Before/After screenshots
Before:
After:
Markup changes
None.
Cross browser tests
None.
Related Issues
None.
Comment | File | Size | Author |
---|---|---|---|
#10 | admin_menu-add_menu_link_clean_views_cache-2909359-10-D8.patch | 2.43 KB | adriancid |
|
Comments
Comment #2
adriancidComment #3
adriancidComment #4
adriancidComment #5
adriancidComment #6
adriancidComment #7
Musa.thomasHi thanks for your patch but you can't add directly links to views in route and menu. Because if views is disable, it cannot work.
So you must to add your code in the .module in admin_toolbar_tools_menu_links_discovered_alter(). Also you must define Csrf token in your links.
Comment #8
Musa.thomasComment #9
adriancidIs true, I don't had this in mind, ok, I will update the patch.
If you need some help with the module I can help as maintainer.
Comment #10
adriancidHere is the update, if you see that need another change let me know.
Comment #12
adriancid