function Router::addDeprecatedRouteFilter
Adds a deprecated route filter.
Parameters
\Drupal\Core\Routing\FilterInterface $route_filter: The route filter.
Deprecated
in drupal:10.1.0 and is removed from drupal:11.0.0. Use route_filter instead.
See also
https://www.drupal.org/node/2894934
File
-
core/
lib/ Drupal/ Core/ Routing/ Router.php, line 98
Class
- Router
- Router implementation in Drupal.
Namespace
Drupal\Core\RoutingCode
public function addDeprecatedRouteFilter(FilterInterface $route_filter) {
@trigger_error('non_lazy_route_filter is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use route_filter instead. See https://www.drupal.org/node/2894934', E_USER_DEPRECATED);
$this->filters[] = $route_filter;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.