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