public function CronJob::isScheduled in Ultimate Cron 8.2
Check job schedule.
Overrides CronJobInterface::isScheduled
File
- src/
Entity/ CronJob.php, line 362
Class
- CronJob
- Class for handling cron jobs.
Namespace
Drupal\ultimate_cron\EntityCode
public function isScheduled() {
\Drupal::moduleHandler()
->invokeAll('cron_pre_schedule', array(
$this,
));
$result = $this
->status() && !$this
->isLocked() && $this
->getPlugin('scheduler')
->isScheduled($this);
\Drupal::moduleHandler()
->invokeAll('cron_post_schedule', array(
$this,
));
return $result;
}