You are here

protected function CronJobDiscovery::getJobTitle in Ultimate Cron 8.2

Returns the job title for a given ID.

Parameters

string $id: The default cron job ID.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The default job title.

1 call to CronJobDiscovery::getJobTitle()
CronJobDiscovery::ensureCronJobExists in src/CronJobDiscovery.php
Creates a new cron job with specific values.

File

src/CronJobDiscovery.php, line 130

Class

CronJobDiscovery
Discovery and instantiation of default cron jobs.

Namespace

Drupal\ultimate_cron

Code

protected function getJobTitle($id) {
  $titles = array();
  $titles['comment_cron'] = t('Store the maximum possible comments per thread');
  $titles['dblog_cron'] = t('Remove expired log messages and flood control events');
  $titles['field_cron'] = t('Purges deleted Field API data');
  $titles['file_cron'] = t('Deletes temporary files');
  $titles['history_cron'] = t('Deletes history');
  $titles['search_cron'] = t('Updates indexable active search pages');
  $titles['system_cron'] = t('Cleanup (caches, batch, flood, temp-files, etc.)');
  $titles['update_cron'] = t('Update indexes');
  $titles['node_cron'] = t('Updates search rankings for nodes');
  $titles['aggregator_cron'] = t('Refresh feeds');
  $titles['ultimate_cron_cron'] = t('Runs internal cleanup operations');
  $titles['statistics_cron'] = t('Reset counts and clean up');
  $titles['tracker_cron'] = t('Update tracker index');
  if (isset($titles[$id])) {
    return $titles[$id];
  }
  return t('Default cron handler');
}