protected function DynamicRouter::applyRouteEnhancers

Apply the route enhancers to the defaults, according to priorities

Parameters

array $defaults:

Request $request:

Return value

array

2 calls to DynamicRouter::applyRouteEnhancers()
DynamicRouter::match in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php
Tries to match a URL path with a set of routes.
DynamicRouter::matchRequest in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php
Tries to match a request with a set of routes and returns the array of information for that route.

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php, line 226

Class

DynamicRouter
A flexible router accepting matcher and generator through injection and using the RouteEnhancer concept to generate additional data on the routes.

Namespace

Symfony\Cmf\Component\Routing

Code

protected function applyRouteEnhancers($defaults, Request $request) {
  foreach ($this
    ->getRouteEnhancers() as $enhancer) {
    $defaults = $enhancer
      ->enhance($defaults, $request);
  }
  return $defaults;
}