function RouteSubscriber::routeRebuildFinished

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

Stores the new route names after they have been rebuilt.

Callback for the RoutingEvents::FINISHED event.

See also

\Drupal\views\EventSubscriber::getSubscribedEvents()

File

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

Class

RouteSubscriber
Builds up the routes of all views.

Namespace

Drupal\views\EventSubscriber

Code

public function routeRebuildFinished() {
    $this->reset();
    $this->state
        ->set('views.view_route_names', $this->viewRouteNames);
}

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