public function ToolbarController::runCron 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::runCron()
- 3.x admin_toolbar_tools/src/Controller/ToolbarController.php \Drupal\admin_toolbar_tools\Controller\ToolbarController::runCron()
Run the cron.
1 string reference to 'ToolbarController::runCron'
- 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 271
Class
- ToolbarController
- Class ToolbarController.
Namespace
Drupal\admin_toolbar_tools\ControllerCode
public function runCron() {
$this->cron
->run();
$this
->messenger()
->addMessage($this
->t('Cron ran successfully.'));
return new RedirectResponse($this
->reloadPage());
}