function menu_cache_clear_all
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(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!menu.inc/function/menu_cache_clear_all/8.1.x