You are here

public function SiteAuditCheckUsersCountAll::getResultInfo in Site Audit 7

Same name and namespace in other branches
  1. 8.2 Check/Users/CountAll.php \SiteAuditCheckUsersCountAll::getResultInfo()

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

Overrides SiteAuditCheckAbstract::getResultInfo

File

Check/Users/CountAll.php, line 36
Contains \SiteAudit\Check\Users\CountAll.

Class

SiteAuditCheckUsersCountAll
Class SiteAuditCheckUsersCountAll.

Code

public function getResultInfo() {
  if ($this->registry['count_users_all'] == 1) {
    return dt('There is one user.');
  }
  return dt('There are @count_users_all users.', array(
    '@count_users_all' => $this->registry['count_users_all'],
  ));
}