You are here

public function CronEnabled::getResultPass in Site Audit 8.3

.

Overrides SiteAuditCheckBase::getResultPass

File

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

Class

CronEnabled
Provides the CronEnabled Check.

Namespace

Drupal\site_audit\Plugin\SiteAuditCheck

Code

public function getResultPass() {

  // Manual execution.
  if ($this->registry->cron_safe_threshold === 0) {
    return $this
      ->t('Drupal Cron frequency is set to never, but has been executed within the past 24 hours (either manually or using drush cron).');
  }

  // Default.
  return $this
    ->t('Cron is set to run every @minutes minutes.', [
    '@minutes' => round($this->registry->cron_safe_threshold / 60),
  ]);
}