public function ContentVocabulariesUnused::calculateScore in Site Audit 8.3
.
Overrides SiteAuditCheckBase::calculateScore
File
- src/
Plugin/ SiteAuditCheck/ ContentVocabulariesUnused.php, line 58
Class
- ContentVocabulariesUnused
- Provides the ContentVocabulariesUnused Check.
Namespace
Drupal\site_audit\Plugin\SiteAuditCheckCode
public function calculateScore() {
if (!isset($this->registry->vocabulary_unused)) {
$this
->checkInvokeCalculateScore('content_vocabularies');
}
if (empty($this->registry->vocabulary_unused)) {
return SiteAuditCheckBase::AUDIT_CHECK_SCORE_PASS;
}
return SiteAuditCheckBase::AUDIT_CHECK_SCORE_WARN;
}