You are here

public function SiteAuditCheckBestPracticesSitesAll::getAction in Site Audit 7

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

Overrides SiteAuditCheckAbstract::getAction

File

Check/BestPractices/SitesAll.php, line 55
Contains \SiteAudit\Check\BestPractices\Settings.

Class

SiteAuditCheckBestPracticesSitesAll
Class SiteAuditCheckBestPracticesSitesAll.

Code

public function getAction() {
  if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL) {
    return dt('sites/all 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/all.');
  }
}