You are here

public function CronEnabled::getResultWarn in Site Audit 8.3

.

Overrides SiteAuditCheckBase::getResultWarn

File

src/Plugin/SiteAuditCheck/CronEnabled.php, line 48

Class

CronEnabled
Provides the CronEnabled Check.

Namespace

Drupal\site_audit\Plugin\SiteAuditCheck

Code

public function getResultWarn() {
  if ($this->registry->cron_safe_threshold > 24 * 60 * 60) {
    return $this
      ->t('Drupal Cron frequency is set to mare than 24 hours.');
  }
  else {
    return $this
      ->t('Drupal Cron has not run in the past day even though it\'s frequency has been set to less than 24 hours.');
  }
}