public function ToolbarController::flushJsCss in Admin Toolbar 8.2
Same name and namespace in other branches
- 8 admin_toolbar_tools/src/Controller/ToolbarController.php \Drupal\admin_toolbar_tools\Controller\ToolbarController::flushJsCss()
- 3.x admin_toolbar_tools/src/Controller/ToolbarController.php \Drupal\admin_toolbar_tools\Controller\ToolbarController::flushJsCss()
Flushes css and javascript caches.
1 string reference to 'ToolbarController::flushJsCss'
- admin_toolbar_tools.routing.yml in admin_toolbar_tools/
admin_toolbar_tools.routing.yml - admin_toolbar_tools/admin_toolbar_tools.routing.yml
File
- admin_toolbar_tools/
src/ Controller/ ToolbarController.php, line 212
Class
- ToolbarController
- Class ToolbarController.
Namespace
Drupal\admin_toolbar_tools\ControllerCode
public function flushJsCss() {
$this
->state()
->set('system.css_js_query_string', base_convert($this->time
->getCurrentTime(), 10, 36));
$this
->messenger()
->addMessage($this
->t('CSS and JavaScript cache cleared.'));
return new RedirectResponse($this
->reloadPage());
}