You are here

protected function RouteEnhancerCollectorTrait::getRouteEnhancers in Page Manager 8.4

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

Sorts the enhancers and flattens them.

Return value

\Drupal\Core\Routing\EnhancerInterface[] 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 55

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;
}