You are here

public function LauncherBase::formatRunning in Ultimate Cron 8.2

Format running state.

Parameters

\Drupal\ultimate_cron\CronJobInterface $job: The running job to format.

Overrides LauncherInterface::formatRunning

File

src/Launcher/LauncherBase.php, line 69

Class

LauncherBase
Abstract class for Ultimate Cron launchers.

Namespace

Drupal\ultimate_cron\Launcher

Code

public function formatRunning(CronJobInterface $job) {
  $file = drupal_get_path('module', 'ultimate_cron') . '/icons/hourglass.png';
  $status = [
    '#theme' => 'image',
    '#uri' => $file,
  ];
  $title = t('running');
  return array(
    $status,
    $title,
  );
}