NodeAccessControlHandler::checkAllGrants

public NodeAccessControlHandler::checkAllGrants(AccountInterface $account)

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 191

Class

NodeAccessControlHandler
Defines the access control handler for the node entity type.

Namespace

Drupal\node

Code

public function checkAllGrants(AccountInterface $account) {
  return $this->grantStorage->checkAll($account);
}
doc_Drupal
2016-10-29 09:30:29
Comments
Leave a Comment

Please login to continue.