public function SiteAuditCheckViewsCount::getResultPass in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Views/Count.php \SiteAuditCheckViewsCount::getResultPass()
Implements \SiteAudit\Check\Abstract\getResultPass().
Overrides SiteAuditCheckAbstract::getResultPass
1 call to SiteAuditCheckViewsCount::getResultPass()
- SiteAuditCheckViewsCount::getResultWarn in Check/
Views/ Count.php - Implements \SiteAudit\Check\Abstract\getResultWarn().
File
- Check/
Views/ Count.php, line 39 - Contains \SiteAudit\Check\Views\Count.
Class
- SiteAuditCheckViewsCount
- Class SiteAuditCheckViewsCount.
Code
public function getResultPass() {
$views_count = count($this->registry['views']);
if (!$views_count) {
return dt('There are no enabled views.');
}
return dt('There are @count_views enabled views.', array(
'@count_views' => count($this->registry['views']),
));
}