You are here

public function CronJob::getCallback in Ultimate Cron 8.2

Gets the cron job callback string.

Return value

string Callback string.

Overrides CronJobInterface::getCallback

2 calls to CronJob::getCallback()
CronJob::invokeCallback in src/Entity/CronJob.php
Invokes the jobs callback.
CronJob::isValid in src/Entity/CronJob.php
Check if the cron job is callable.

File

src/Entity/CronJob.php, line 803

Class

CronJob
Class for handling cron jobs.

Namespace

Drupal\ultimate_cron\Entity

Code

public function getCallback() {
  if (is_callable($this->callback)) {
    return $this->callback;
  }
  else {
    return $this
      ->resolveCallback($this->callback);
  }
}