function NodeAccessTestEmptyHooks::nodeGrants
Same name and namespace in other branches
- 11.x core/modules/node/tests/modules/node_access_test_empty/src/Hook/NodeAccessTestEmptyHooks.php \Drupal\node_access_test_empty\Hook\NodeAccessTestEmptyHooks::nodeGrants()
Implements hook_node_grants().
Attributes
#[Hook('node_grants')]
File
-
core/
modules/ node/ tests/ modules/ node_access_test_empty/ src/ Hook/ NodeAccessTestEmptyHooks.php, line 18
Class
- NodeAccessTestEmptyHooks
- Hook implementations for node_access_test_empty.
Namespace
Drupal\node_access_test_empty\HookCode
public function nodeGrants($account, $operation) : array {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.