3 namespace Drupal\Core\Routing\Enhancer;
5 use Drupal\Core\Routing\EnhancerInterface;
6 use Symfony\Component\Routing\Route;
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);
11 * A route enhance service to determine route enhance rules.
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
19 interface RouteEnhancerInterface extends EnhancerInterface {
22 * Declares if the route enhancer applies to the given route.
24 * @param \Symfony\Component\Routing\Route $route
25 * The route to consider attaching to.
28 * TRUE if the check applies to the passed route, False otherwise.
30 public function applies(Route $route);