You are here

public function SiteAuditCheckBestPracticesMultisite::getAction in Site Audit 8.2

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

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

Overrides SiteAuditCheckAbstract::getAction

File

Check/BestPractices/Multisite.php, line 64
Contains \SiteAudit\Check\BestPractices\Multisite.

Class

SiteAuditCheckBestPracticesMultisite
Class SiteAuditCheckBestPracticesMultisite.

Code

public function getAction() {
  if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL) {
    return dt('See https://pantheon.io/blog/drupal-multisite-much-ado-about-drupal-multisite for details.');
  }
  if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN) {
    if ($this->registry['multisite_enabled']) {
      return dt('See https://www.drupal.org/node/2297419 for details on how to use multisite feature in Drupal 8.');
    }
    else {
      return dt('Inside the sites/ directory, copy example.sites.php to sites.php to create the configuration. See https://www.drupal.org/node/2297419 for details.');
    }
  }
}