2 * Implements hook_node_grants().
4 function {{ machine_name }}_node_grants(\Drupal\Core\Session\AccountInterface $account, $op) {
5 if ($account->hasPermission('access private content')) {
6 $grants['example'] = [1];
9 $grants['example_author'] = [$account->id()];