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\drupalmonitorCode
public function getFilesCount() {
$query = "SELECT count(*) FROM {file_managed}";
return (int) $this->database
->query($query)
->fetchField();
}