Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / Routing / Enhancer / RouteEnhancerInterface.php
1 <?php
2
3 namespace Drupal\Core\Routing\Enhancer;
4
5 use Drupal\Core\Routing\EnhancerInterface;
6 use Symfony\Component\Routing\Route;
7
8 @trigger_error('\Drupal\Core\Routing\Enhancer\RouteEnhancerInterface is deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Instead, you should use \Drupal\Core\Routing\EnhancerInterface. See https://www.drupal.org/node/2894934', E_USER_DEPRECATED);
9
10 /**
11  * A route enhance service to determine route enhance rules.
12  *
13  * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead,
14  * you should use \Drupal\Core\Routing\EnhancerInterface.
15  * See https://www.drupal.org/node/2894934
16  * Part of the deprecation means that applies() is now called on runtime instead
17  * of compile time.
18  */
19 interface RouteEnhancerInterface extends EnhancerInterface {
20
21   /**
22    * Declares if the route enhancer applies to the given route.
23    *
24    * @param \Symfony\Component\Routing\Route $route
25    *   The route to consider attaching to.
26    *
27    * @return bool
28    *   TRUE if the check applies to the passed route, False otherwise.
29    */
30   public function applies(Route $route);
31
32 }