public function NestedMatcherInterface::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.

1 method overrides NestedMatcherInterface::setInitialMatcher()
NestedMatcher::setInitialMatcher in drupal/core/lib/Drupal/Core/Routing/NestedMatcher.php
Sets the first matcher for the matching plan.

File

drupal/core/lib/Drupal/Core/Routing/NestedMatcherInterface.php, line 29
Definition of Drupal\Core\Routing\NestedMatcherInterface.

Class

NestedMatcherInterface
A NestedMatcher allows for multiple-stage resolution of a route.

Namespace

Drupal\Core\Routing

Code

public function setInitialMatcher(InitialMatcherInterface $initial);