You are here

public function SiteAuditCheckBase::getScore in Site Audit 8.3

Get a quantifiable number representing a check result; lazy initialization.

Return value

int Constants indicating pass, fail and so forth.

9 calls to SiteAuditCheckBase::getScore()
ContentDuplicateTitles::getAction in src/Plugin/SiteAuditCheck/ContentDuplicateTitles.php
.
ContentEntityTypesUnused::getAction in src/Plugin/SiteAuditCheck/ContentEntityTypesUnused.php
.
ContentFieldCount::getAction in src/Plugin/SiteAuditCheck/ContentFieldCount.php
.
ContentFieldsUnused::getAction in src/Plugin/SiteAuditCheck/ContentFieldsUnused.php
.
ContentVocabulariesUnused::getAction in src/Plugin/SiteAuditCheck/ContentVocabulariesUnused.php
.

... See full list

File

src/Plugin/SiteAuditCheckBase.php, line 235

Class

SiteAuditCheckBase
Base class for Site Audit Check plugins.

Namespace

Drupal\site_audit\Plugin

Code

public function getScore() {
  if (!isset($this->score)) {
    $this->score = $this
      ->calculateScore();
  }
  return $this->score;
}