You are here

public function CronJob::getUniqueID in Ultimate Cron 8.2

Get a "unique" id for a job.

Overrides CronJobInterface::getUniqueID

File

src/Entity/CronJob.php, line 694

Class

CronJob
Class for handling cron jobs.

Namespace

Drupal\ultimate_cron\Entity

Code

public function getUniqueID() {
  return isset($this->ids[$this
    ->id()]) ? $this->ids[$this
    ->id()] : ($this->ids[$this
    ->id()] = hexdec(substr(sha1($this
    ->id()), -8)));
}