You are here

public function SiteAuditCheckViewsEnabled::calculateScore in Site Audit 8.2

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

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

Overrides SiteAuditCheckAbstract::calculateScore

File

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

Class

SiteAuditCheckViewsEnabled
Class SiteAuditCheckViewsEnabled.

Code

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