You are here

public function RouteFilterInterface::applies in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Routing/RouteFilterInterface.php \Drupal\Core\Routing\RouteFilterInterface::applies()

Determines if the route filter applies to the given route.

Parameters

\Symfony\Component\Routing\Route $route: The route to consider attaching to.

Return value

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

3 methods override RouteFilterInterface::applies()
AcceptHeaderMatcher::applies in core/modules/system/tests/modules/accept_header_routing_test/src/Routing/AcceptHeaderMatcher.php
Determines if the route filter applies to the given route.
ContentTypeHeaderMatcher::applies in core/lib/Drupal/Core/Routing/ContentTypeHeaderMatcher.php
Determines if the route filter applies to the given route.
RequestFormatRouteFilter::applies in core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php
Determines if the route filter applies to the given route.

File

core/lib/Drupal/Core/Routing/RouteFilterInterface.php, line 27
Contains \Drupal\Core\Routing\RouteFilterInterface.

Class

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

Namespace

Drupal\Core\Routing

Code

public function applies(Route $route);