public function MetricService::getNodeContentTypes in Drupalmonitor 8
Get Node Content Types.
Return value
array Node Content Types.
File
- src/
MetricService.php, line 102
Class
- MetricService
- Class MetricService.
Namespace
Drupal\drupalmonitorCode
public function getNodeContentTypes() {
$query = "SELECT n.type, count(*) as counter FROM {node} n GROUP BY n.type";
return $this->database
->query($query)
->fetchAllKeyed();
}