You are here

public function SiteAuditCheckCronEnabled::getResultPass in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Cron/Enabled.php \SiteAuditCheckCronEnabled::getResultPass()

Implements \SiteAudit\Check\Abstract\getResultPass().

Overrides SiteAuditCheckAbstract::getResultPass

File

Check/Cron/Enabled.php, line 42
Contains \SiteAudit\Check\Cron\Enabled.

Class

SiteAuditCheckCronEnabled
Class SiteAuditCheckCronEnabled.

Code

public function getResultPass() {

  // Manual execution.
  if ($this->registry['cron_safe_threshold'] === 0) {
    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),
  ));
}