public function CronEnabled::getAction in Site Audit 8.3
.
Overrides SiteAuditCheckBase::getAction
File
- src/
Plugin/ SiteAuditCheck/ CronEnabled.php, line 60
Class
- CronEnabled
- Provides the CronEnabled Check.
Namespace
Drupal\site_audit\Plugin\SiteAuditCheckCode
public function getAction() {
if ($this->score == SiteAuditCheckBase::AUDIT_CHECK_SCORE_FAIL) {
return $this
->t('Please visit /admin/config/system/cron and set the cron frequency to something other than Never but less than 24 hours.');
}
elseif ($this->score == SiteAuditCheckBase::AUDIT_CHECK_SCORE_WARN) {
if ($this->registry->cron_safe_threshold > 24 * 60 * 60) {
return $this
->t('Please visit /admin/config/system/cron and set the cron frequency to something less than 24 hours.');
}
}
}