function Router::addRouteFilter
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::addRouteFilter()
- 10 core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::addRouteFilter()
- 11.x core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::addRouteFilter()
Adds a route filter.
Parameters
\Drupal\Core\Routing\FilterInterface $route_filter: The route filter.
File
-
core/
lib/ Drupal/ Core/ Routing/ Router.php, line 83
Class
- Router
- Router implementation in Drupal.
Namespace
Drupal\Core\RoutingCode
public function addRouteFilter(FilterInterface $route_filter) {
$this->filters[] = $route_filter;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.