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

Overrides PartialMatcherInterface::setCollection

File

drupal/core/lib/Drupal/Core/Routing/PartialMatcher.php, line 34
Definition of Drupal\Core\Routing\PartialMatcher.

Class

PartialMatcher
Utility base class for partial matchers.

Namespace

Drupal\Core\Routing

Code

public function setCollection(RouteCollection $collection) {
  $this->routes = $collection;
  return $this;
}