You are here

public function LauncherBase::formatProgress in Ultimate Cron 8.2

Default implementation of formatProgress().

Parameters

\Drupal\ultimate_cron\CronJobInterface $job: Job to format progress for.

string $progress: Progress value for the Job.

Overrides LauncherInterface::formatProgress

File

src/Launcher/LauncherBase.php, line 89

Class

LauncherBase
Abstract class for Ultimate Cron launchers.

Namespace

Drupal\ultimate_cron\Launcher

Code

public function formatProgress(CronJobInterface $job, $progress) {
  $progress = $progress ? sprintf("(%d%%)", round($progress * 100)) : '';
  return $progress;
}