You are here

public function AccessManager::checkRequest in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::checkRequest()
  2. 9 core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::checkRequest()

File

core/lib/Drupal/Core/Access/AccessManager.php, line 111

Class

AccessManager
Attaches access check services to routes and runs them on request.

Namespace

Drupal\Core\Access

Code

public function checkRequest(Request $request, AccountInterface $account = NULL, $return_as_object = FALSE) {
  $route_match = RouteMatch::createFromRequest($request);
  return $this
    ->check($route_match, $account, $request, $return_as_object);
}