Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RequestMatcherInterface.php

function RequestMatcherInterface::matchRequest

Tries to match a request with a set of routes.

If the matcher cannot find information, it must throw one of the exceptions documented below.

Throws

NoConfigurationException If no routing configuration could be found

ResourceNotFoundException If no matching resource could be found

MethodNotAllowedException If a matching resource was found but the request method is not allowed

3 methods override RequestMatcherInterface::matchRequest()
AccessAwareRouterInterface::matchRequest in core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php
Router::matchRequest in vendor/symfony/routing/Router.php
Tries to match a request with a set of routes.
UrlMatcher::matchRequest in vendor/symfony/routing/Matcher/UrlMatcher.php
Tries to match a request with a set of routes.

File

vendor/symfony/routing/Matcher/RequestMatcherInterface.php, line 36

Class

RequestMatcherInterface
RequestMatcherInterface is the interface that all request matcher classes must implement.

Namespace

Symfony\Component\Routing\Matcher

Code

public function matchRequest(Request $request) : array;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal