public function CronController::runManually in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/CronController.php \Drupal\system\CronController::runManually()
Run cron manually.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse A Symfony direct response object.
1 string reference to 'CronController::runManually'
- system.routing.yml in core/
modules/ system/ system.routing.yml - core/modules/system/system.routing.yml
File
- core/
modules/ system/ src/ CronController.php, line 64 - Contains \Drupal\system\CronController.
Class
- CronController
- Controller for Cron handling.
Namespace
Drupal\systemCode
public function runManually() {
if ($this->cron
->run()) {
drupal_set_message($this
->t('Cron ran successfully.'));
}
else {
drupal_set_message($this
->t('Cron run failed.'), 'error');
}
return $this
->redirect('system.status');
}