You are here

public function ToolbarController::flush_js_css in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 modules/admin_toolbar/admin_toolbar_tools/src/Controller/ToolbarController.php \Drupal\admin_toolbar_tools\Controller\ToolbarController::flush_js_css()
1 string reference to 'ToolbarController::flush_js_css'
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 57
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_js_css() {
  \Drupal::state()
    ->set('system.css_js_query_string', base_convert(REQUEST_TIME, 10, 36));
  drupal_set_message($this
    ->t('CSS and JavaScript cache cleared.'));
  return new RedirectResponse($this
    ->reload_page());
}