menu_cache_clear_all()
Clears all cached menu data.
This should be called any time broad changes might have been made to the router items or menu links.
Related topics
- Menu system
- Define the navigation menus, local actions and tasks, and contextual links.
File
- core/includes/menu.inc, line 161
- API for the Drupal menu system.
Code
function menu_cache_clear_all() { \Drupal::cache('menu')->invalidateAll(); }
Please login to continue.