a3ccb4486f7d636e48352918c8e17797d5457c7f
[yaffs-website] / web / core / lib / Drupal / Core / Routing / RouteFilterInterface.php
1 <?php
2
3 namespace Drupal\Core\Routing;
4
5 use Symfony\Cmf\Component\Routing\NestedMatcher\RouteFilterInterface as BaseRouteFilterInterface;
6 use Symfony\Component\Routing\Route;
7
8 /**
9  * A route filter service to filter down the collection of route instances.
10  */
11 interface RouteFilterInterface extends BaseRouteFilterInterface {
12
13   /**
14    * Determines if the route filter applies to the given route.
15    *
16    * @param \Symfony\Component\Routing\Route $route
17    *   The route to consider attaching to.
18    *
19    * @return bool
20    *   TRUE if the check applies to the passed route, FALSE otherwise.
21    */
22   public function applies(Route $route);
23
24 }