public function SiteAuditCheckBestPracticesServices::getAction in Site Audit 8.2
Implements \SiteAudit\Check\Abstract\getAction().
Overrides SiteAuditCheckAbstract::getAction
File
- Check/
BestPractices/ Services.php, line 55 - Contains \SiteAudit\Check\BestPractices\Service.
Class
- SiteAuditCheckBestPracticesServices
- Class SiteAuditCheckBestPracticesServices.
Code
public function getAction() {
if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN) {
return dt('Don\'t rely on symbolic links for core configuration files; copy services.yml where it should be and remove the symbolic link.');
}
if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL) {
return dt('Create services.yml file inside sites/default directory by copying default.services.yml file. See https://www.drupal.org/documentation/install/settings-file for details.');
}
}