public function NestedMatcher::setInitialMatcher

Sets the first matcher for the matching plan.

Partial matchers will be run in the order in which they are added.

Parameters

\Drupal\Core\Routing\InitialMatcherInterface $matcher: An initial matcher. It is responsible for its own configuration and initial route collection

Return value

\Drupal\Core\Routing\NestedMatcherInterface The current matcher.

Overrides NestedMatcherInterface::setInitialMatcher

File

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

Class

NestedMatcher
The nested matcher layers multiple partial matchers together.

Namespace

Drupal\Core\Routing

Code

public function setInitialMatcher(InitialMatcherInterface $initial) {
  $this->initialMatcher = $initial;
  return $this;
}