function NodeAccessTestLanguageHooks::nodeGrants
Implements hook_node_grants().
This module defines a single grant realm. All users belong to this group.
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) {
$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.