interface RouteFilterInterface implements FilterInterface (View source)

deprecated in drupal:8.4.0 and is removed from drupal:9.0.0. Instead, you should use \Drupal\Core\Routing\FilterInterface. See https://www.drupal.org/node/2894934

A route filter service to filter down the collection of route instances.

Methods

bool
applies(Route $route)

Determines if the route filter applies to the given route.

Details

bool applies(Route $route)

Determines if the route filter applies to the given route.

Parameters

Route $route

The route to consider attaching to.

Return Value

bool

TRUE if the check applies to the passed route, FALSE otherwise.