protected function CronJobDiscovery::getHooks in Ultimate Cron 8.2
Get all cron hooks defined.
Return value
array All hook definitions available.
2 calls to CronJobDiscovery::getHooks()
- CronJobDiscovery::discoverCronJobs in src/
CronJobDiscovery.php - Automatically discovers and creates default cron jobs.
- ultimate_cron_nagios_get_job_info in ./
ultimate_cron.nagios.inc - Get information about running jobs - currently running or failed.
File
- src/
CronJobDiscovery.php, line 159
Class
- CronJobDiscovery
- Discovery and instantiation of default cron jobs.
Namespace
Drupal\ultimate_cronCode
protected function getHooks() {
$hooks = array();
// Generate list of jobs provided by modules.
$modules = array_keys($this->moduleHandler
->getModuleList());
foreach ($modules as $module) {
$hooks += $this
->getModuleHooks($module);
}
return $hooks;
}