public function FinalMatcherInterface::setCollection

Sets the route collection this matcher should use.

Parameters

\Symfony\Component\Routing\RouteCollection $collection: The collection against which to match.

Return value

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

1 method overrides FinalMatcherInterface::setCollection()
FirstEntryFinalMatcher::setCollection in drupal/core/lib/Drupal/Core/Routing/FirstEntryFinalMatcher.php
Sets the route collection this matcher should use.

File

drupal/core/lib/Drupal/Core/Routing/FinalMatcherInterface.php, line 27
Definition of Drupal\Core\Routing\FinalMatcherInterface.

Class

FinalMatcherInterface
A FinalMatcher returns only one route from a collection of candidate routes.

Namespace

Drupal\Core\Routing

Code

public function setCollection(RouteCollection $collection);