d6be823b5e151ce1f26fa99d50e20630122c7ca9
[yaffs-website] / RouteEnhancerInterface.php
1 <?php
2
3 namespace Drupal\Core\Routing\Enhancer;
4
5 use Symfony\Cmf\Component\Routing\Enhancer\RouteEnhancerInterface as BaseRouteEnhancerInterface;
6 use Symfony\Component\Routing\Route;
7
8 /**
9  * A route enhance service to determine route enhance rules.
10  */
11 interface RouteEnhancerInterface extends BaseRouteEnhancerInterface {
12
13   /**
14    * Declares if the route enhancer 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 }