function RouteSubscriber::getApplicableViews
Same name in other branches
- 8.9.x core/modules/views/src/EventSubscriber/RouteSubscriber.php \Drupal\views\EventSubscriber\RouteSubscriber::getApplicableViews()
- 10 core/modules/views/src/EventSubscriber/RouteSubscriber.php \Drupal\views\EventSubscriber\RouteSubscriber::getApplicableViews()
- 11.x 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()
1 call to RouteSubscriber::getApplicableViews()
- RouteSubscriber::getViewsDisplayIDsWithRoute in core/
modules/ views/ src/ EventSubscriber/ RouteSubscriber.php - Gets all the views and display IDs using a route.
1 method overrides RouteSubscriber::getApplicableViews()
- TestRouteSubscriber::getApplicableViews in core/
modules/ views/ tests/ src/ Unit/ EventSubscriber/ RouteSubscriberTest.php - Returns all views/display combinations with routes.
File
-
core/
modules/ views/ src/ EventSubscriber/ RouteSubscriber.php, line 175
Class
- RouteSubscriber
- Builds up the routes of all views.
Namespace
Drupal\views\EventSubscriberCode
protected function getApplicableViews() {
return Views::getApplicableViews('uses_route');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.