Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Access/AccessCheckInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Core\Access; | |
4 | |
5 use Symfony\Component\Routing\Route; | |
6 use Drupal\Core\Routing\Access\AccessInterface as RoutingAccessInterface; | |
7 | |
8 /** | |
9 * An access check service determines access rules for particular routes. | |
10 */ | |
11 interface AccessCheckInterface extends RoutingAccessInterface { | |
12 | |
13 /** | |
14 * Declares whether the access check applies to a specific route or not. | |
15 * | |
16 * @param \Symfony\Component\Routing\Route $route | |
17 * The route to consider attaching to. | |
18 * | |
19 * @return array | |
20 * An array of route requirement keys this access checker applies to. | |
21 */ | |
22 public function applies(Route $route); | |
23 | |
24 } |