public function AccessManager::checkRequest in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::checkRequest()
- 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\AccessCode
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);
}