public function NestedMatcherInterface::addPartialMatcher

Adds a partial matcher to the matching plan.

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

Parameters

\Drupal\Core\Routing\PartialMatcherInterface $matcher: A partial matcher.

int $priority: (optional) The priority of the matcher. Higher number matchers will be checked first. Default to 0.

Return value

NestedMatcherInterface The current matcher.

1 method overrides NestedMatcherInterface::addPartialMatcher()
NestedMatcher::addPartialMatcher in drupal/core/lib/Drupal/Core/Routing/NestedMatcher.php
Adds a partial matcher to the matching plan.

File

drupal/core/lib/Drupal/Core/Routing/NestedMatcherInterface.php, line 45
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 addPartialMatcher(PartialMatcherInterface $matcher, $priority = 0);