You are here

interface RouteEnhancerInterface in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony-cmf/routing/Enhancer/RouteEnhancerInterface.php \Symfony\Cmf\Component\Routing\Enhancer\RouteEnhancerInterface
  2. 8 core/lib/Drupal/Core/Routing/Enhancer/RouteEnhancerInterface.php \Drupal\Core\Routing\Enhancer\RouteEnhancerInterface
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Routing/Enhancer/RouteEnhancerInterface.php \Drupal\Core\Routing\Enhancer\RouteEnhancerInterface

A route enhance service to determine route enhance rules.

Hierarchy

Expanded class hierarchy of RouteEnhancerInterface

All classes that implement RouteEnhancerInterface

3 files declare their use of RouteEnhancerInterface
EntityRouteEnhancer.php in core/lib/Drupal/Core/Entity/Enhancer/EntityRouteEnhancer.php
Contains \Drupal\Core\Entity\Enhancer\EntityRouteEnhancer.
FieldUiRouteEnhancer.php in core/modules/field_ui/src/Routing/FieldUiRouteEnhancer.php
Contains \Drupal\field_ui\Routing\FieldUiRouteEnhancer.
LazyRouteEnhancer.php in core/lib/Drupal/Core/Routing/LazyRouteEnhancer.php
Contains \Drupal\Core\Routing\LazyRouteEnhancer.

File

core/lib/Drupal/Core/Routing/Enhancer/RouteEnhancerInterface.php, line 16
Contains \Drupal\Core\Routing\Enhancer\RouteEnhancerInterface.

Namespace

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

  /**
   * 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. 4
RouteEnhancerInterface::enhance public function Update the defaults based on its own data and the request. 9