You are here

public function SiteAuditCheckBestPracticesSitesDefault::getAction in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/BestPractices/SitesDefault.php \SiteAuditCheckBestPracticesSitesDefault::getAction()

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

Overrides SiteAuditCheckAbstract::getAction

File

Check/BestPractices/SitesDefault.php, line 55
Contains \SiteAudit\Check\BestPractices\SitesDefault.

Class

SiteAuditCheckBestPracticesSitesDefault
Class SiteAuditCheckBestPracticesSitesDefault.

Code

public function getAction() {
  if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL) {
    return dt('sites/default is necessary; recreate the directory immediately.');
  }
  if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN) {
    return dt('Avoid changing Drupal\'s site structure; remove the symbolic link and recreate sites/default.');
  }
}