function Router::match

File

core/lib/Drupal/Core/Routing/Router.php, line 97

Class

Router
Router implementation in Drupal.

Namespace

Drupal\Core\Routing

Code

public function match($pathinfo) : array {
  try {
    $request = Request::create($pathinfo);
  } catch (BadRequestException $e) {
    throw new ResourceNotFoundException($e->getMessage(), $e->getCode(), $e);
  }
  return $this->matchRequest($request);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.