function NodeAccessControlHandlerInterface::acquireGrants

Same name in other branches
  1. 8.9.x core/modules/node/src/NodeAccessControlHandlerInterface.php \Drupal\node\NodeAccessControlHandlerInterface::acquireGrants()
  2. 10 core/modules/node/src/NodeAccessControlHandlerInterface.php \Drupal\node\NodeAccessControlHandlerInterface::acquireGrants()
  3. 11.x core/modules/node/src/NodeAccessControlHandlerInterface.php \Drupal\node\NodeAccessControlHandlerInterface::acquireGrants()

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.

Parameters

\Drupal\node\NodeInterface $node: The $node to acquire grants for.

Return value

array The access rules for the node.

1 method overrides NodeAccessControlHandlerInterface::acquireGrants()
NodeAccessControlHandler::acquireGrants in core/modules/node/src/NodeAccessControlHandler.php
Gets the list of node access grants.

File

core/modules/node/src/NodeAccessControlHandlerInterface.php, line 29

Class

NodeAccessControlHandlerInterface
Node specific entity access control methods.

Namespace

Drupal\node

Code

public function acquireGrants(NodeInterface $node);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.