public function NestedMatcher::setFinalMatcher

Sets the final matcher for the matching plan.

Parameters

\Drupal\Core\Routing\FinalMatcherInterface $final: The matcher that will be called last to ensure only a single route is found.

Return value

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

Overrides NestedMatcherInterface::setFinalMatcher

File

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

Class

NestedMatcher
The nested matcher layers multiple partial matchers together.

Namespace

Drupal\Core\Routing

Code

public function setFinalMatcher(FinalMatcherInterface $final) {
  $this->finalMatcher = $final;
  return $this;
}