function CronController::__construct
Same name in other branches
- 9 core/modules/system/src/CronController.php \Drupal\system\CronController::__construct()
- 10 core/modules/system/src/CronController.php \Drupal\system\CronController::__construct()
- 11.x core/modules/system/src/CronController.php \Drupal\system\CronController::__construct()
Constructs a CronController object.
Parameters
\Drupal\Core\CronInterface $cron: The cron service.
File
-
core/
modules/ system/ src/ CronController.php, line 28
Class
- CronController
- Controller for Cron handling.
Namespace
Drupal\systemCode
public function __construct(CronInterface $cron) {
$this->cron = $cron;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.