public function RouteSubscriber::routeRebuildFinished in Drupal 8
Same name and namespace in other branches
- 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\EventSubscriberCode
public function routeRebuildFinished() {
$this
->reset();
$this->state
->set('views.view_route_names', $this->viewRouteNames);
}