You are here

public function SiteAuditCheckExtensionsDev::getAction in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Extensions/Dev.php \SiteAuditCheckExtensionsDev::getAction()

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

Overrides SiteAuditCheckAbstract::getAction

File

Check/Extensions/Dev.php, line 87
Contains \SiteAudit\Check\Extensions\Dev.

Class

SiteAuditCheckExtensionsDev
Class SiteAuditCheckExtensionsDev.

Code

public function getAction() {
  if ($this
    ->getScore() == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN) {
    $show_action = TRUE;
    if (site_audit_env_is_dev()) {
      $show_action = FALSE;
    }
    if ($show_action) {
      return dt('Disable development modules for increased stability, security and performance in the Live (production) environment.');
    }
  }
}