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.
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);