You are here

public function RoutingDataCollector::__construct in Devel 8

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

Constructs a new RoutingDataCollector.

Parameters

\Drupal\Core\Routing\RouteProviderInterface $routeProvider: The route provider.

File

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

Class

RoutingDataCollector
Provides a data collector which shows all available routes.

Namespace

Drupal\webprofiler\DataCollector

Code

public function __construct(RouteProviderInterface $routeProvider) {
  $this->routeProvider = $routeProvider;
}