function PerformanceData::logQuery

Same name in other branches
  1. 10 core/tests/Drupal/Tests/PerformanceData.php \Drupal\Tests\PerformanceData::logQuery()

Logs a database query.

Parameters

string $query: The database query recorded.

File

core/tests/Drupal/Tests/PerformanceData.php, line 165

Class

PerformanceData
Value object to store performance information collected from requests.

Namespace

Drupal\Tests

Code

public function logQuery(string $query) : void {
    $this->queries[] = $query;
    $this->queryCount++;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.