public function BestPracticesMultisite::getAction in Site Audit 8.3
.
Overrides SiteAuditCheckBase::getAction
File
- src/
Plugin/ SiteAuditCheck/ BestPracticesMultisite.php, line 57
Class
- BestPracticesMultisite
- Provides the BestPracticesMultisite Check.
Namespace
Drupal\site_audit\Plugin\SiteAuditCheckCode
public function getAction() {
if ($this->score == SiteAuditCheckBase::AUDIT_CHECK_SCORE_FAIL) {
return $this
->t('See https://pantheon.io/blog/drupal-multisite-much-ado-about-drupal-multisite for details.');
}
if ($this->score == SiteAuditCheckBase::AUDIT_CHECK_SCORE_WARN) {
if ($this->registry->multisite_enabled) {
return $this
->t('See https://www.drupal.org/node/2297419 for details on how to use multisite feature in Drupal 8.');
}
else {
return $this
->t('Inside the sites/ directory, copy example.sites.php to sites.php to create the configuration. See https://www.drupal.org/node/2297419 for details.');
}
}
}