You are here

public function RouteProvider::reset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::reset()

Resets the route provider object.

Overrides RouteProviderInterface::reset

File

core/lib/Drupal/Core/Routing/RouteProvider.php, line 377
Contains \Drupal\Core\Routing\RouteProvider.

Class

RouteProvider
A Route Provider front-end for all Drupal-stored routes.

Namespace

Drupal\Core\Routing

Code

public function reset() {
  $this->routes = array();
  $this->serializedRoutes = array();
  $this->cacheTagInvalidator
    ->invalidateTags([
    'routes',
  ]);
}