NodeAccessControlHandlerInterface::deleteGrants

public NodeAccessControlHandlerInterface::deleteGrants() Deletes all node access entries. File core/modules/node/src/NodeAccessControlHandlerInterface.php, line 60 Class NodeAccessControlHandlerInterface Node specific entity access control methods. Namespace Drupal\node Code public function deleteGrants();

NodeAccessControlHandlerInterface::countGrants

public NodeAccessControlHandlerInterface::countGrants() Counts available node grants. Return value int Returns the amount of node grants. File core/modules/node/src/NodeAccessControlHandlerInterface.php, line 68 Class NodeAccessControlHandlerInterface Node specific entity access control methods. Namespace Drupal\node Code public function countGrants();

NodeAccessControlHandlerInterface::checkAllGrants

public NodeAccessControlHandlerInterface::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. File core/modules/node/src/NodeAccessControlHandlerInterface.php, line 80 Class NodeAccessControlHandlerInterface Node specific entity access control methods. Namespace Drupal\node

NodeAccessControlHandlerInterface::acquireGrants

public NodeAccessControlHandlerInterface::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. Parameters \Drupal\node\NodeInterface $node: The $node to acquire grants for. Return value array

NodeAccessControlHandlerInterface

Node specific entity access control methods. Hierarchy interface \Drupal\node\NodeAccessControlHandlerInterface Related topics Node access rights The node access system determines who can do what to which nodes. File core/modules/node/src/NodeAccessControlHandlerInterface.php, line 12 Namespace Drupal\node Members Name Modifiers Type Description NodeAccessControlHandlerInterface::acquireGrants public function Gets the list of node access grants. NodeAccessControlHand

NodeAccessControlHandler::__construct

public NodeAccessControlHandler::__construct(EntityTypeInterface $entity_type, NodeGrantDatabaseStorageInterface $grant_storage) Constructs a NodeAccessControlHandler object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\node\NodeGrantDatabaseStorageInterface $grant_storage: The node grant storage. Overrides EntityAccessControlHandler::__construct File core/modules/node/src/NodeAccessControlHandler.php, line 38 Class NodeAccessControlH

NodeAccessControlHandler::writeGrants

public NodeAccessControlHandler::writeGrants(NodeInterface $node, $delete = TRUE) Writes a list of grants to the database, deleting any previously saved ones. Modules that use node access can use this function when doing mass updates due to widespread permission changes. Note: Don't call this function directly from a contributed module. Call \Drupal\node\NodeAccessControlHandlerInterface::acquireGrants() instead. Parameters \Drupal\node\NodeInterface $node: The node whose grants are being writ

NodeAccessControlHandler::writeDefaultGrant

public NodeAccessControlHandler::writeDefaultGrant() Creates the default node access grant entry on the grant storage. Overrides NodeAccessControlHandlerInterface::writeDefaultGrant File core/modules/node/src/NodeAccessControlHandler.php, line 170 Class NodeAccessControlHandler Defines the access control handler for the node entity type. Namespace Drupal\node Code public function writeDefaultGrant() { $this->grantStorage->writeDefault(); }

NodeAccessControlHandler::deleteGrants

public NodeAccessControlHandler::deleteGrants() Deletes all node access entries. Overrides NodeAccessControlHandlerInterface::deleteGrants File core/modules/node/src/NodeAccessControlHandler.php, line 177 Class NodeAccessControlHandler Defines the access control handler for the node entity type. Namespace Drupal\node Code public function deleteGrants() { $this->grantStorage->delete(); }

NodeAccessControlHandler::createInstance

public static NodeAccessControlHandler::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\