public function ChainMatcher::all

Sorts the matchers and flattens them.

Return value

array An array of RequestMatcherInterface objects.

1 call to ChainMatcher::all()
ChainMatcher::matchRequest in drupal/core/lib/Drupal/Core/Routing/ChainMatcher.php
Matches a request against all queued matchers.

File

drupal/core/lib/Drupal/Core/Routing/ChainMatcher.php, line 138
Definition of Drupal\Core\Routing\ChainMatcher.

Class

ChainMatcher
Aggregates multiple matchers together in series.

Namespace

Drupal\Core\Routing

Code

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