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();
}
doc_Drupal
2016-10-29 09:27:47
Comments
Leave a Comment

Please login to continue.