public function MetricService::getUserCount in Drupalmonitor 8
Get User Count.
Return value
int User Count.
File
- src/
MetricService.php, line 47
Class
- MetricService
- Class MetricService.
Namespace
Drupal\drupalmonitorCode
public function getUserCount() {
$query = "SELECT count(*) FROM {users}";
return (int) $this->database
->query($query)
->fetchField();
}