3 namespace Drupal\Core\Routing;
5 use Symfony\Component\Routing\Route;
7 @trigger_error('\Drupal\Core\Routing\Enhancer\RouteFilterInterface is deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Instead, you should use \Drupal\Core\Routing\FilterInterface. See https://www.drupal.org/node/2894934', E_USER_DEPRECATED);
10 * A route filter service to filter down the collection of route instances.
12 * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead,
13 * you should use \Drupal\Core\Routing\FilterInterface.
14 * See https://www.drupal.org/node/2894934
16 interface RouteFilterInterface extends FilterInterface {
19 * Determines if the route filter applies to the given route.
21 * @param \Symfony\Component\Routing\Route $route
22 * The route to consider attaching to.
25 * TRUE if the check applies to the passed route, FALSE otherwise.
27 public function applies(Route $route);