You are here

public function RouteFilterInterface::filter in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/NestedMatcher/RouteFilterInterface.php \Symfony\Cmf\Component\Routing\NestedMatcher\RouteFilterInterface::filter()

Filters the route collection against a request and returns all matching routes.

Parameters

RouteCollection $collection The collection against which to match.:

Request $request A Request object against which to match.:

Return value

RouteCollection A non-empty RouteCollection of matched routes.

Throws

ResourceNotFoundException if none of the routes in $collection matches $request. This is a performance optimization to not continue the match process when a match will no longer be possible.

4 methods override RouteFilterInterface::filter()
AcceptHeaderMatcher::filter in core/modules/system/tests/modules/accept_header_routing_test/src/Routing/AcceptHeaderMatcher.php
Filters the route collection against a request and returns all matching routes.
ContentTypeHeaderMatcher::filter in core/lib/Drupal/Core/Routing/ContentTypeHeaderMatcher.php
Filters the route collection against a request and returns all matching routes.
LazyRouteFilter::filter in core/lib/Drupal/Core/Routing/LazyRouteFilter.php
Filters the route collection against a request and returns all matching routes.
RequestFormatRouteFilter::filter in core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php
Filters the route collection against a request and returns all matching routes.

File

vendor/symfony-cmf/routing/NestedMatcher/RouteFilterInterface.php, line 46

Class

RouteFilterInterface
A RouteFilter takes a RouteCollection and returns a filtered subset.

Namespace

Symfony\Cmf\Component\Routing\NestedMatcher

Code

public function filter(RouteCollection $collection, Request $request);