You are here

public function CachePreprocessJS::getAction in Site Audit 8.3

.

Overrides SiteAuditCheckBase::getAction

File

src/Plugin/SiteAuditCheck/CachePreprocessJS.php, line 48

Class

CachePreprocessJS
Provides the CachePreprocessJS Check.

Namespace

Drupal\site_audit\Plugin\SiteAuditCheck

Code

public function getAction() {
  if (!in_array($this->score, [
    SiteAuditCheckBase::AUDIT_CHECK_SCORE_PASS,
  ])) {
    return $this
      ->t('Go to /admin/config/development/performance and check "Aggregate JavaScript files".');
  }
}