You are here

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\drupalmonitor

Code

public function getUserCount() {
  $query = "SELECT count(*) FROM {users}";
  return (int) $this->database
    ->query($query)
    ->fetchField();
}