public function UsersCountBlocked::getResultInfo in Site Audit 8.3
.
Overrides SiteAuditCheckBase::getResultInfo
File
- src/
Plugin/ SiteAuditCheck/ UsersCountBlocked.php, line 27
Class
- UsersCountBlocked
- Provides the UsersCountBlocked Check.
Namespace
Drupal\site_audit\Plugin\SiteAuditCheckCode
public function getResultInfo() {
switch ($this->registry->count_users_blocked) {
case 0:
return $this
->t('There are no blocked users.');
break;
default:
return $this
->formatPlural($this->registry->count_users_blocked, 'There is one blocked user.', 'There are @count blocked users.');
break;
}
}