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'
File
- src/
Controller/ ToolbarController.php, line 102
Class
- ToolbarController
- Toolbar controller.
Namespace
Drupal\helper\ControllerCode
public function flushBootstrap() {
\Drupal::cache('bootstrap')
->deleteAll();
$this
->messenger()
->addMessage($this
->t('Bootstrap cache cleared.'));
return new RedirectResponse($this
->reloadPage());
}