You are here

protected function RouteSubscriber::getApplicableViews in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/EventSubscriber/RouteSubscriber.php \Drupal\views\EventSubscriber\RouteSubscriber::getApplicableViews()
  2. 9 core/modules/views/src/EventSubscriber/RouteSubscriber.php \Drupal\views\EventSubscriber\RouteSubscriber::getApplicableViews()

Returns all views/display combinations with routes.

See also

\Drupal\views\Views::getApplicableViews()

File

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

Class

RouteSubscriber
Builds up the routes of all views.

Namespace

Drupal\views\EventSubscriber

Code

protected function getApplicableViews() {
  return Views::getApplicableViews('uses_route');
}