function PathTestNodeGrantsHooks::nodeGrants
Same name and namespace in other branches
- 11.x core/modules/path/tests/modules/path_test_node_grants/src/Hook/PathTestNodeGrantsHooks.php \Drupal\path_test_node_grants\Hook\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\HookCode
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.