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