function RouteSubscriber::reset

Same name in other branches
  1. 8.9.x core/modules/views/src/EventSubscriber/RouteSubscriber.php \Drupal\views\EventSubscriber\RouteSubscriber::reset()
  2. 10 core/modules/views/src/EventSubscriber/RouteSubscriber.php \Drupal\views\EventSubscriber\RouteSubscriber::reset()
  3. 11.x core/modules/views/src/EventSubscriber/RouteSubscriber.php \Drupal\views\EventSubscriber\RouteSubscriber::reset()

Resets the internal state of the route subscriber.

1 call to RouteSubscriber::reset()
RouteSubscriber::routeRebuildFinished in core/modules/views/src/EventSubscriber/RouteSubscriber.php
Stores the new route names after they have been rebuilt.

File

core/modules/views/src/EventSubscriber/RouteSubscriber.php, line 70

Class

RouteSubscriber
Builds up the routes of all views.

Namespace

Drupal\views\EventSubscriber

Code

public function reset() {
    $this->viewsDisplayPairs = NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.