You are here

public function CronJob::setCallback in Ultimate Cron 8.2

Sets the cron job callback string.

Parameters

$callback:

Return value

string Callback string.

Overrides CronJobInterface::setCallback

File

src/Entity/CronJob.php, line 851

Class

CronJob
Class for handling cron jobs.

Namespace

Drupal\ultimate_cron\Entity

Code

public function setCallback($callback) {
  $this
    ->set('callback', $callback);
  return $this;
}