You are here

public function SiteAuditCheckWatchdogCount::getResultInfo in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Watchdog/Count.php \SiteAuditCheckWatchdogCount::getResultInfo()

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

Overrides SiteAuditCheckAbstract::getResultInfo

File

Check/Watchdog/Count.php, line 34
Contains \SiteAudit\Check\Watchdog\Count.

Class

SiteAuditCheckWatchdogCount
Class SiteAuditCheckWatchdogCount.

Code

public function getResultInfo() {
  if (!$this->registry['count_entries']) {
    return dt('There are no dblog entries.');
  }
  return dt('There are @count_entries log entries.', array(
    '@count_entries' => number_format($this->registry['count_entries']),
  ));
}