public function SiteAuditCheckContentFieldEnabled::calculateScore in Site Audit 8.2
Same name and namespace in other branches
- 7 Check/Content/FieldEnabled.php \SiteAuditCheckContentFieldEnabled::calculateScore()
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Content/ FieldEnabled.php, line 58 - Contains \SiteAudit\Check\Content\FieldEnabled.
Class
- SiteAuditCheckContentFieldEnabled
- Class SiteAuditCheckContentFieldEnabled.
Code
public function calculateScore() {
if (!\Drupal::moduleHandler()
->moduleExists('field')) {
$this->abort = TRUE;
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}