RouteProvider::reset

public RouteProvider::reset()

Resets the route provider object.

Overrides RouteProviderInterface::reset

File

core/lib/Drupal/Core/Routing/RouteProvider.php, line 382

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']);
}
doc_Drupal
2016-10-29 09:39:19
Comments
Leave a Comment

Please login to continue.