You are here

public function RouteSubscriber::routeRebuildFinished in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/EventSubscriber/RouteSubscriber.php \Drupal\views\EventSubscriber\RouteSubscriber::routeRebuildFinished()
  2. 9 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);
}