public function NestedMatcher::getPartialMatchers

Sorts the matchers and flattens them.

Return value

array An array of RequestMatcherInterface objects.

1 call to NestedMatcher::getPartialMatchers()
NestedMatcher::matchRequest in drupal/core/lib/Drupal/Core/Routing/NestedMatcher.php
Tries to match a request with a set of routes.

File

drupal/core/lib/Drupal/Core/Routing/NestedMatcher.php, line 148
Definition of Drupal\Core\Routing\NestedMatcher.

Class

NestedMatcher
The nested matcher layers multiple partial matchers together.

Namespace

Drupal\Core\Routing

Code

public function getPartialMatchers() {
  if (empty($this->sortedMatchers)) {
    $this->sortedMatchers = $this
      ->sortMatchers();
  }
  return $this->sortedMatchers;
}