public function PartialMatcherInterface::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\PartialMatcherInterface The current matcher.

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

File

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

Class

PartialMatcherInterface
A PartialMatcher works like a UrlMatcher, but will return multiple candidate routes.

Namespace

Drupal\Core\Routing

Code

public function setCollection(RouteCollection $collection);