function NodeAccessTestLanguageHooks::nodeGrants
Same name and namespace in other branches
- 11.x core/modules/node/tests/modules/node_access_test_language/src/Hook/NodeAccessTestLanguageHooks.php \Drupal\node_access_test_language\Hook\NodeAccessTestLanguageHooks::nodeGrants()
Implements hook_node_grants().
This module defines a single grant realm. All users belong to this group.
Attributes
#[Hook('node_grants')]
File
-
core/
modules/ node/ tests/ modules/ node_access_test_language/ src/ Hook/ NodeAccessTestLanguageHooks.php, line 20
Class
- NodeAccessTestLanguageHooks
- Hook implementations for node_access_test_language.
Namespace
Drupal\node_access_test_language\HookCode
public function nodeGrants($account, $operation) : array {
$grants['node_access_language_test'] = [
7888,
];
return $grants;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.