You are here

public function SiteAuditCheckCachePreprocessJs::getAction in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Cache/PreprocessJs.php \SiteAuditCheckCachePreprocessJs::getAction()

Implements \SiteAudit\Check\Abstract\getAction().

Overrides SiteAuditCheckAbstract::getAction

File

Check/Cache/PreprocessJs.php, line 55
Contains \SiteAudit\Check\Cache\PreprocessJs.

Class

SiteAuditCheckCachePreprocessJs
Class SiteAuditCheckCachePreprocessJs.

Code

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