public function ToolbarController::flush_plugins in Zircon Profile 8
Same name and namespace in other branches
- 8.0 modules/admin_toolbar/admin_toolbar_tools/src/Controller/ToolbarController.php \Drupal\admin_toolbar_tools\Controller\ToolbarController::flush_plugins()
1 string reference to 'ToolbarController::flush_plugins'
- 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 65 - Contains \Drupal\admin_toolbar_tools\Controller\ToolbarController.
Class
- ToolbarController
- Class ToolbarController @package Drupal\admin_toolbar_tools\Controller
Namespace
Drupal\admin_toolbar_tools\ControllerCode
public function flush_plugins() {
// Clear all plugin caches.
\Drupal::service('plugin.cache_clearer')
->clearCachedDefinitions();
drupal_set_message($this
->t('Plugin cache cleared.'));
return new RedirectResponse($this
->reload_page());
}