You are here

protected function SiteAuditCheckBase::checkInvokeCalculateScore in Site Audit 8.3

Invoke another check's calculateScore() method if it is needed.

9 calls to SiteAuditCheckBase::checkInvokeCalculateScore()
ContentDuplicateTitles::calculateScore in src/Plugin/SiteAuditCheck/ContentDuplicateTitles.php
.
ContentEntityTypesUnused::calculateScore in src/Plugin/SiteAuditCheck/ContentEntityTypesUnused.php
.
ContentFieldInstances::calculateScore in src/Plugin/SiteAuditCheck/ContentFieldInstances.php
.
ContentVocabulariesUnused::calculateScore in src/Plugin/SiteAuditCheck/ContentVocabulariesUnused.php
.
ExtensionsUnrecommended::calculateScore in src/Plugin/SiteAuditCheck/ExtensionsUnrecommended.php
.

... See full list

File

src/Plugin/SiteAuditCheckBase.php, line 275

Class

SiteAuditCheckBase
Base class for Site Audit Check plugins.

Namespace

Drupal\site_audit\Plugin

Code

protected function checkInvokeCalculateScore($plugin_id) {
  $checkManager = \Drupal::service('plugin.manager.site_audit_check');
  if (isset($opt_out)) {
    $check = $checkManager
      ->createInstance($plugin_id, [
      'registry' => $this->registry,
      'opt_out' => $opt_out,
    ]);
    $check
      ->calculateScore();
  }
}