public function SiteAuditCheckCacheAllBackends::calculateScore in Site Audit 8.2
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Cache/ AllBackends.php, line 85 - Contains \SiteAudit\Check\Cache\AllBackends.
Class
- SiteAuditCheckCacheAllBackends
- Class SiteAuditCheckCacheAllBackends.
Code
public function calculateScore() {
$container = \Drupal::getContainer();
$services = $container
->getServiceIds();
$this->registry['all_backends'] = array();
$backends = preg_grep('/^cache\\.backend\\./', array_values($services));
foreach ($backends as $backend) {
$this->registry['all_backends'][$backend] = get_class($container
->get($backend));
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}