You are here

public function MetricService::getFilesCount in Drupalmonitor 8

Get Files Count.

Return value

int Files Count.

File

src/MetricService.php, line 80

Class

MetricService
Class MetricService.

Namespace

Drupal\drupalmonitor

Code

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