function menu_cache_clear_all in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/includes/menu.inc \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
4 calls to menu_cache_clear_all()
- menu_ui_menu_delete in core/
modules/ menu_ui/ menu_ui.module - Implements hook_ENTITY_TYPE_delete() for menu entities.
- menu_ui_menu_insert in core/
modules/ menu_ui/ menu_ui.module - Implements hook_ENTITY_TYPE_insert( for menu entities.
- menu_ui_menu_update in core/
modules/ menu_ui/ menu_ui.module - Implements hook_ENTITY_TYPE_update() for menu entities.
- ToolbarController::flush_menu in modules/
admin_toolbar/ admin_toolbar_tools/ src/ Controller/ ToolbarController.php
File
- core/
includes/ menu.inc, line 161 - API for the Drupal menu system.
Code
function menu_cache_clear_all() {
\Drupal::cache('menu')
->invalidateAll();
}