Utility base class for partial matchers.
Expanded class hierarchy of PartialMatcher
abstract class PartialMatcher implements PartialMatcherInterface {
/**
* The RouteCollection this matcher should match against.
*
* @var \Symfony\Component\Routing\RouteCollection
*/
protected $routes;
/**
* Sets the route collection this matcher should use.
*
* @param \Symfony\Component\Routing\RouteCollection $collection
* The collection against which to match.
*
* @return \Drupal\Core\Routing\PartialMatcherInterface
* The current matcher.
*/
public function setCollection(RouteCollection $collection) {
$this->routes = $collection;
return $this;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PartialMatcher:: |
protected | property | The RouteCollection this matcher should match against. | |
PartialMatcher:: |
public | function |
Sets the route collection this matcher should use. Overrides PartialMatcherInterface:: |
|
PartialMatcherInterface:: |
public | function | Matches a request against multiple routes. | 2 |