public function UrlMatcherInterface::match

Tries to match a URL path with a set of routes.

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

@api

Parameters

string $pathinfo The path info to be parsed (raw format, i.e. not urldecoded):

Return value

array An array of parameters

Throws

ResourceNotFoundException If the resource could not be found

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

4 methods override UrlMatcherInterface::match()
ChainRouter::match in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php
Loops through all routes and tries to match the passed url.
DynamicRouter::match in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php
Tries to match a URL path with a set of routes.
Router::match in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Router.php
Tries to match a URL path with a set of routes.
UrlMatcher::match in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php
Tries to match a URL path with a set of routes.

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcherInterface.php, line 42

Class

UrlMatcherInterface
UrlMatcherInterface is the interface that all URL matcher classes must implement.

Namespace

Symfony\Component\Routing\Matcher

Code

public function match($pathinfo);