You are here

public function AcceptHeaderMatcher::applies in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/accept_header_routing_test/src/Routing/AcceptHeaderMatcher.php \Drupal\accept_header_routing_test\Routing\AcceptHeaderMatcher::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.

Overrides RouteFilterInterface::applies

File

core/modules/system/tests/modules/accept_header_routing_test/src/Routing/AcceptHeaderMatcher.php, line 70
Contains \Drupal\accept_header_routing_test\Routing\AcceptHeaderMatcher.

Class

AcceptHeaderMatcher
Filters routes based on the media type specified in the HTTP Accept headers.

Namespace

Drupal\accept_header_routing_test\Routing

Code

public function applies(Route $route) {
  return TRUE;
}