You are here

interface RouteEnhancerInterface in Drupal 8

A route enhance service to determine route enhance rules.

Hierarchy

Expanded class hierarchy of RouteEnhancerInterface

All classes that implement RouteEnhancerInterface

Deprecated

in drupal:8.4.0 and is removed from drupal:9.0.0. Instead, you should use \Drupal\Core\Routing\EnhancerInterface. See https://www.drupal.org/node/2894934 Part of the deprecation means that applies() is now called on runtime instead of compile time.

1 file declares its use of RouteEnhancerInterface
Router.php in core/lib/Drupal/Core/Routing/Router.php

File

core/lib/Drupal/Core/Routing/Enhancer/RouteEnhancerInterface.php, line 19

Namespace

Drupal\Core\Routing\Enhancer
View source
interface RouteEnhancerInterface extends EnhancerInterface {

  /**
   * Declares if the route enhancer applies to the given route.
   *
   * @param \Symfony\Component\Routing\Route $route
   *   The route to consider attaching to.
   *
   * @return bool
   *   TRUE if the check applies to the passed route, False otherwise.
   */
  public function applies(Route $route);

}

Members

Namesort descending Modifiers Type Description Overrides
RouteEnhancerInterface::applies public function Declares if the route enhancer applies to the given route.