function PathTestNodeGrantsHooks::nodeGrants

Implements hook_node_grants().

Attributes

#[Hook('node_grants')]

File

core/modules/path/tests/modules/path_test_node_grants/src/Hook/PathTestNodeGrantsHooks.php, line 18

Class

PathTestNodeGrantsHooks
Hook implementations for path_test_node_grants.

Namespace

Drupal\path_test_node_grants\Hook

Code

public function nodeGrants(AccountInterface $account, $operation) : array {
  $grants = [];
  return $grants;
}

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