public function SiteAuditCheckCronEnabled::getResultPass in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Cron/Enabled.php \SiteAuditCheckCronEnabled::getResultPass()
Implements \SiteAudit\Check\Abstract\getResultPass().
Overrides SiteAuditCheckAbstract::getResultPass
File
- Check/
Cron/ Enabled.php, line 48 - Contains \SiteAudit\Check\Cron\Enabled.
Class
- SiteAuditCheckCronEnabled
- Class SiteAuditCheckCronEnabled.
Code
public function getResultPass() {
// Manual execution.
if (!$this->registry['cron_safe_threshold']) {
return dt('Drupal Cron frequency is set to never, but has been executed within the past 24 hours (either manually or using drush cron).');
}
// Default.
return dt('Cron is set to run every @minutes minutes.', array(
'@minutes' => round($this->registry['cron_safe_threshold'] / 60),
));
}