Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Access / AccessArgumentsResolverFactoryInterface.php
1 <?php
2
3 namespace Drupal\Core\Access;
4
5 use Drupal\Core\Routing\RouteMatchInterface;
6 use Drupal\Core\Session\AccountInterface;
7 use Symfony\Component\HttpFoundation\Request;
8
9 /**
10  * Constructs the arguments resolver instance to use when running access checks.
11  */
12 interface AccessArgumentsResolverFactoryInterface {
13
14   /**
15    * Returns the arguments resolver to use when running access checks.
16    *
17    * @param \Drupal\Core\Routing\RouteMatchInterface $route_match
18    *   The route match object to be checked.
19    * @param \Drupal\Core\Session\AccountInterface $account
20    *   The account being checked.
21    * @param \Symfony\Component\HttpFoundation\Request $request
22    *   Optional, the request object.
23    *
24    * @return \Drupal\Component\Utility\ArgumentsResolverInterface
25    *   The parametrized arguments resolver instance.
26    */
27   public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, Request $request = NULL);
28
29 }