You are here

protected function RouteEnhancerCollectorTrait::getRouteEnhancers in Page Manager 8

Same name and namespace in other branches
  1. 8.4 src/Routing/RouteEnhancerCollectorTrait.php \Drupal\page_manager\Routing\RouteEnhancerCollectorTrait::getRouteEnhancers()

Sorts the enhancers and flattens them.

Return value

\Symfony\Cmf\Component\Routing\Enhancer\RouteEnhancerInterface[] The enhancers ordered by priority.

1 call to RouteEnhancerCollectorTrait::getRouteEnhancers()
VariantRouteFilter::getRequestAttributes in src/Routing/VariantRouteFilter.php
Prepares the request attributes for use by the selection process.

File

src/Routing/RouteEnhancerCollectorTrait.php, line 60
Contains \Drupal\page_manager\Routing\RouteEnhancerCollectorTrait.

Class

RouteEnhancerCollectorTrait
Provides a trait to make a service a collector of route enhancers.

Namespace

Drupal\page_manager\Routing

Code

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