NodeAccessControlHandlerInterface
interface NodeAccessControlHandlerInterface (View source)
Node specific entity access control methods.
Methods
array
writeDefaultGrant()
Creates the default node access grant entry on the grant storage.
deleteGrants()
Deletes all node access entries.
int
countGrants()
Counts available node grants.
int
Details
array
acquireGrants(NodeInterface $node)
Gets the list of node access grants.
This function is called to check the access grants for a node. It collects all node access grants for the node from hook_node_access_records() implementations, allows these grants to be altered via hook_node_access_records_alter() implementations, and returns the grants to the caller.
writeDefaultGrant()
Creates the default node access grant entry on the grant storage.
deleteGrants()
Deletes all node access entries.
int
countGrants()
Counts available node grants.
int
checkAllGrants(AccountInterface $account)
Checks all grants for a given account.