You are here

public function DatabaseDataCollector::getQueryCount in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/DatabaseDataCollector.php \Drupal\webprofiler\DataCollector\DatabaseDataCollector::getQueryCount()
  2. 8.2 webprofiler/src/DataCollector/DatabaseDataCollector.php \Drupal\webprofiler\DataCollector\DatabaseDataCollector::getQueryCount()
  3. 4.x webprofiler/src/DataCollector/DatabaseDataCollector.php \Drupal\webprofiler\DataCollector\DatabaseDataCollector::getQueryCount()

Return value

int

2 calls to DatabaseDataCollector::getQueryCount()
DatabaseDataCollector::getColorCode in webprofiler/src/DataCollector/DatabaseDataCollector.php
Returns a color based on the number of executed queries.
DatabaseDataCollector::getPanelSummary in webprofiler/src/DataCollector/DatabaseDataCollector.php
Returns the string used in vertical tab summary.

File

webprofiler/src/DataCollector/DatabaseDataCollector.php, line 109

Class

DatabaseDataCollector
Class DatabaseDataCollector

Namespace

Drupal\webprofiler\DataCollector

Code

public function getQueryCount() {
  return count($this->data['queries']);
}