public function ToolbarController::themeRebuild in Admin Toolbar 8.2
Same name and namespace in other branches
- 3.x admin_toolbar_tools/src/Controller/ToolbarController.php \Drupal\admin_toolbar_tools\Controller\ToolbarController::themeRebuild()
Rebuild the theme registry.
1 string reference to 'ToolbarController::themeRebuild'
- 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 289
Class
- ToolbarController
- Class ToolbarController.
Namespace
Drupal\admin_toolbar_tools\ControllerCode
public function themeRebuild() {
$this->themeRegistry
->reset();
$this
->messenger()
->addMessage($this
->t('Theme registry rebuilded.'));
return new RedirectResponse($this
->reloadPage());
}