You are here

public function CronJob::loadLatestLogEntry in Ultimate Cron 8.2

Load latest log.

Return value

LogEntry The latest log entry for this job.

Overrides CronJobInterface::loadLatestLogEntry

File

src/Entity/CronJob.php, line 537

Class

CronJob
Class for handling cron jobs.

Namespace

Drupal\ultimate_cron\Entity

Code

public function loadLatestLogEntry($log_types = array(
  ULTIMATE_CRON_LOG_TYPE_NORMAL,
)) {
  return $this
    ->getPlugin('logger')
    ->load($this
    ->id(), NULL, $log_types);
}