You are here

public function SiteAuditCheckWatchdogEnabled::calculateScore in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Watchdog/Enabled.php \SiteAuditCheckWatchdogEnabled::calculateScore()

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

Overrides SiteAuditCheckAbstract::calculateScore

File

Check/Watchdog/Enabled.php, line 58
Contains \SiteAudit\Check\Watchdog\Enabled.

Class

SiteAuditCheckWatchdogEnabled
Class SiteAuditCheckWatchdogEnabled.

Code

public function calculateScore() {
  if (!\Drupal::moduleHandler()
    ->moduleExists('dblog')) {
    $this->abort = TRUE;
    return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
  }
  return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}