You are here

public function CronJob::isValid in Ultimate Cron 8.2

Check if the cron job is callable.

Return value

bool TRUE if the job is callable, FALSE otherwise.

Overrides CronJobInterface::isValid

File

src/Entity/CronJob.php, line 192

Class

CronJob
Class for handling cron jobs.

Namespace

Drupal\ultimate_cron\Entity

Code

public function isValid() {
  return is_callable($this
    ->getCallback());
}