You are here

public function HttpDataCollector::getFailedRequestsCount in Devel 8

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

Return value

int

1 call to HttpDataCollector::getFailedRequestsCount()
HttpDataCollector::getPanelSummary in webprofiler/src/DataCollector/HttpDataCollector.php
Returns the string used in vertical tab summary.

File

webprofiler/src/DataCollector/HttpDataCollector.php, line 132

Class

HttpDataCollector
Collects data about http calls during request.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getFailedRequestsCount() {
  return count($this
    ->getFailedRequests());
}