function NodeAccessControlHandler::writeGrants

Overrides NodeAccessControlHandlerInterface::writeGrants

File

core/modules/node/src/NodeAccessControlHandler.php, line 172

Class

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

Namespace

Drupal\node

Code

public function writeGrants(NodeInterface $node, $delete = TRUE) {
    $grants = $this->acquireGrants($node);
    $this->grantStorage
        ->write($node, $grants, NULL, $delete);
}

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