You are here

public function MockRouteProvider::reset in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::reset()

Resets the route provider object.

Overrides RouteProviderInterface::reset

File

core/modules/system/src/Tests/Routing/MockRouteProvider.php, line 90

Class

MockRouteProvider
Easily configurable mock route provider.

Namespace

Drupal\system\Tests\Routing

Code

public function reset() {
  $this->routes = [];
}