2 invocations of hook_node_grants()

NodeAccessRecordsTest::testNodeAccessRecords in core/modules/node/tests/src/Kernel/NodeAccessRecordsTest.php
Creates a node and tests the creation of node access rules.
node_access_grants in core/modules/node/node.module
Fetches an array of permission IDs granted to the given user ID.

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