You are here

public function CronJob::getModuleDescription in Ultimate Cron 8.2

Get module description for this job.

Overrides CronJobInterface::getModuleDescription

File

src/Entity/CronJob.php, line 604

Class

CronJob
Class for handling cron jobs.

Namespace

Drupal\ultimate_cron\Entity

Code

public function getModuleDescription() {
  static $descs = array();
  if (!isset($descs[$this->module])) {
    $info = $this->moduleExtensionList
      ->getExtensionInfo($this->module);
    $descs[$this->module] = $info && !empty($info['description']) ? $info['description'] : '';
  }
  return $descs[$this->module];
}