You are here

public function CronJob::getModuleName in Ultimate Cron 8.2

Get module name for this job.

Overrides CronJobInterface::getModuleName

File

src/Entity/CronJob.php, line 592

Class

CronJob
Class for handling cron jobs.

Namespace

Drupal\ultimate_cron\Entity

Code

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