Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / web / core / lib / Drupal / Core / Access / AccessCheckInterface.php
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 }