You are here

public function ToolbarController::flushBootstrap in Helper 8

Flush the bootstrap cache.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse Reloads the page.

1 string reference to 'ToolbarController::flushBootstrap'
helper.routing.yml in ./helper.routing.yml
helper.routing.yml

File

src/Controller/ToolbarController.php, line 102

Class

ToolbarController
Toolbar controller.

Namespace

Drupal\helper\Controller

Code

public function flushBootstrap() {
  \Drupal::cache('bootstrap')
    ->deleteAll();
  $this
    ->messenger()
    ->addMessage($this
    ->t('Bootstrap cache cleared.'));
  return new RedirectResponse($this
    ->reloadPage());
}