function UrlMatcher::finalMatch
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/UrlMatcher.php \Drupal\Core\Routing\UrlMatcher::finalMatch()
- 10 core/lib/Drupal/Core/Routing/UrlMatcher.php \Drupal\Core\Routing\UrlMatcher::finalMatch()
- 11.x core/lib/Drupal/Core/Routing/UrlMatcher.php \Drupal\Core\Routing\UrlMatcher::finalMatch()
File
-
core/
lib/ Drupal/ Core/ Routing/ UrlMatcher.php, line 35
Class
- UrlMatcher
- Drupal-specific URL Matcher; handles the Drupal "system path" mapping.
Namespace
Drupal\Core\RoutingCode
public function finalMatch(RouteCollection $collection, Request $request) {
$this->routes = $collection;
$context = new RequestContext();
$context->fromRequest($request);
$this->setContext($context);
return $this->match($this->currentPath
->getPath($request));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.