public function CronJob::sendSignal in Ultimate Cron 8.2
Send a signal.
Overrides CronJobInterface::sendSignal
See also
UltimateCronSignal::set()
File
- src/
Entity/ CronJob.php, line 228
Class
- CronJob
- Class for handling cron jobs.
Namespace
Drupal\ultimate_cron\EntityCode
public function sendSignal($signal, $persist = FALSE) {
if ($persist) {
$signal = \Drupal::service('ultimate_cron.signal');
$signal
->set($this
->id(), $signal);
}
else {
self::$signals[$this
->id()][$signal] = TRUE;
}
}