public function CronJob::formatProgress in Ultimate Cron 8.2
Format progress.
Parameters
float $progress: (optional) The progress to format. Uses the progress on the object if not specified.
Return value
string Formatted progress.
Overrides CronJobInterface::formatProgress
File
- src/
Entity/ CronJob.php, line 684
Class
- CronJob
- Class for handling cron jobs.
Namespace
Drupal\ultimate_cron\EntityCode
public function formatProgress($progress = NULL) {
if (!isset($progress)) {
$progress = isset($this->progress) ? $this->progress : $this
->getProgress();
}
return $this
->getPlugin('launcher')
->formatProgress($this, $progress);
}