function Router::match

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::match()
  2. 10 core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::match()
  3. 11.x core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::match()

File

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

Class

Router
Router implementation in Drupal.

Namespace

Drupal\Core\Routing

Code

public function match($pathinfo) : array {
    $request = Request::create($pathinfo);
    return $this->matchRequest($request);
}

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