function NodeAccessControlHandler::checkAllGrants
Same name and namespace in other branches
- 8.9.x core/modules/node/src/NodeAccessControlHandler.php \Drupal\node\NodeAccessControlHandler::checkAllGrants()
- 10 core/modules/node/src/NodeAccessControlHandler.php \Drupal\node\NodeAccessControlHandler::checkAllGrants()
- 11.x core/modules/node/src/NodeAccessControlHandler.php \Drupal\node\NodeAccessControlHandler::checkAllGrants()
Checks all grants for a given account.
Parameters
\Drupal\Core\Session\AccountInterface $account: A user object representing the user for whom the operation is to be performed.
Return value
int Status of the access check.
Overrides NodeAccessControlHandlerInterface::checkAllGrants
File
-
core/
modules/ node/ src/ NodeAccessControlHandler.php, line 269
Class
- NodeAccessControlHandler
- Defines the access control handler for the node entity type.
Namespace
Drupal\nodeCode
public function checkAllGrants(AccountInterface $account) {
return $this->grantStorage
->checkAll($account);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.