You are here

public function RoutingDataCollector::getRoutesCount in Devel 8.3

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

Return value

int

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

File

webprofiler/src/DataCollector/RoutingDataCollector.php, line 53

Class

RoutingDataCollector
Provides a data collector which shows all available routes.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getRoutesCount() {
  return count($this
    ->routing());
}