You are here

public function ToolbarController::flush_menu in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 modules/admin_toolbar/admin_toolbar_tools/src/Controller/ToolbarController.php \Drupal\admin_toolbar_tools\Controller\ToolbarController::flush_menu()
1 string reference to 'ToolbarController::flush_menu'
admin_toolbar_tools.routing.yml in modules/admin_toolbar/admin_toolbar_tools/admin_toolbar_tools.routing.yml
modules/admin_toolbar/admin_toolbar_tools/admin_toolbar_tools.routing.yml

File

modules/admin_toolbar/admin_toolbar_tools/src/Controller/ToolbarController.php, line 80
Contains \Drupal\admin_toolbar_tools\Controller\ToolbarController.

Class

ToolbarController
Class ToolbarController @package Drupal\admin_toolbar_tools\Controller

Namespace

Drupal\admin_toolbar_tools\Controller

Code

public function flush_menu() {
  menu_cache_clear_all();
  drupal_set_message($this
    ->t('All cached menu data cleared.'));
  return new RedirectResponse($this
    ->reload_page());
}