function AccessManager::checkRequest
Same name in other branches
- 9 core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::checkRequest()
- 10 core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::checkRequest()
- 11.x core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::checkRequest()
Overrides AccessManagerInterface::checkRequest
File
-
core/
lib/ Drupal/ Core/ Access/ AccessManager.php, line 110
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.