Mercurial > hg > isophonics-drupal-site
annotate core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\Core\Routing; |
Chris@0 | 4 |
Chris@0 | 5 use Symfony\Component\HttpFoundation\Request; |
Chris@0 | 6 use Symfony\Component\Routing\Matcher\RequestMatcherInterface; |
Chris@0 | 7 use Symfony\Component\Routing\RouterInterface; |
Chris@0 | 8 |
Chris@0 | 9 /** |
Chris@0 | 10 * Interface for a router class for Drupal with access check and upcasting. |
Chris@0 | 11 */ |
Chris@0 | 12 interface AccessAwareRouterInterface extends RouterInterface, RequestMatcherInterface { |
Chris@0 | 13 |
Chris@0 | 14 /** |
Chris@0 | 15 * Attribute name of the access result for the request.. |
Chris@0 | 16 */ |
Chris@0 | 17 const ACCESS_RESULT = '_access_result'; |
Chris@0 | 18 |
Chris@0 | 19 /** |
Chris@0 | 20 * {@inheritdoc} |
Chris@0 | 21 * |
Chris@0 | 22 * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException |
Chris@0 | 23 * Thrown when access checking failed. |
Chris@0 | 24 */ |
Chris@0 | 25 public function matchRequest(Request $request); |
Chris@0 | 26 |
Chris@0 | 27 /** |
Chris@0 | 28 * {@inheritdoc} |
Chris@0 | 29 * |
Chris@0 | 30 * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException |
Chris@0 | 31 * Thrown when $access_check is enabled and access checking failed. |
Chris@0 | 32 */ |
Chris@0 | 33 public function match($pathinfo); |
Chris@0 | 34 |
Chris@0 | 35 } |