Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Router.php

function Router::addRouteEnhancer

Adds a route enhancer.

Parameters

\Drupal\Core\Routing\EnhancerInterface $route_enhancer: The route enhancer.

File

core/lib/Drupal/Core/Routing/Router.php, line 94

Class

Router
Router implementation in Drupal.

Namespace

Drupal\Core\Routing

Code

public function addRouteEnhancer(EnhancerInterface $route_enhancer) {
    $this->enhancers[] = $route_enhancer;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal