You are here

public function RouteProvider::getRouteCollectionForRequest in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/KernelTests/RouteProvider.php \Drupal\KernelTests\RouteProvider::getRouteCollectionForRequest()
  2. 8 core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::getRouteCollectionForRequest()
Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/RouteProvider.php \Drupal\KernelTests\RouteProvider::getRouteCollectionForRequest()
  2. 10 core/tests/Drupal/KernelTests/RouteProvider.php \Drupal\KernelTests\RouteProvider::getRouteCollectionForRequest()

File

core/tests/Drupal/KernelTests/RouteProvider.php, line 35

Class

RouteProvider
Rebuilds the router when the provider is instantiated.

Namespace

Drupal\KernelTests

Code

public function getRouteCollectionForRequest(Request $request) {
  return $this
    ->lazyLoadItself()
    ->getRouteCollectionForRequest($request);
}