You are here

public function SiteAuditCheckFrontEndTemplateFiles::getAction in Site Audit 7

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

Overrides SiteAuditCheckAbstract::getAction

File

Check/FrontEnd/TemplateFiles.php, line 88
Contains \SiteAudit\Check\BestPractices\TemplateFiles.

Class

SiteAuditCheckFrontEndTemplateFiles
Class SiteAuditCheckFrontEndTemplateFiles.

Code

public function getAction() {
  if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN) {
    return dt('Business logic in template files degrades performance. Move PHP into pre-processors and JavaScript into JavaScript files.');
  }
}