public function DynamicRouter::getRouteEnhancers

Sorts the enhancers and flattens them.

Return value

RouteEnhancerInterface[] the enhancers ordered by priority

1 call to DynamicRouter::getRouteEnhancers()
DynamicRouter::applyRouteEnhancers in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php
Apply the route enhancers to the defaults, according to priorities

File

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

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

public function getRouteEnhancers() {
  if (empty($this->sortedEnhancers)) {
    $this->sortedEnhancers = $this
      ->sortRouteEnhancers();
  }
  return $this->sortedEnhancers;
}