public function AccessAwareRouter::match

public AccessAwareRouter::match($pathinfo)

Throws

\Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException Thrown when access checking failed.

Overrides AccessAwareRouterInterface::match

File

core/lib/Drupal/Core/Routing/AccessAwareRouter.php, line 132

Class

AccessAwareRouter
A router class for Drupal with access check and upcasting.

Namespace

Drupal\Core\Routing

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!AccessAwareRouter.php/function/AccessAwareRouter::match/8.1.x