function scheduler_access_test_node_access_records in Scheduler 8
Same name and namespace in other branches
- 2.x tests/modules/scheduler_access_test/scheduler_access_test.module \scheduler_access_test_node_access_records()
Implements hook_node_access_records().
File
- tests/
modules/ scheduler_access_test/ scheduler_access_test.module, line 14 - Installation file for Scheduler Access Test module.
Code
function scheduler_access_test_node_access_records(NodeInterface $node) {
// For the purpose of this test we deny access to every node regardless of
// its published status.
$grants = [
[
'realm' => 'scheduler',
'gid' => 1,
'grant_view' => 0,
'grant_update' => 0,
'grant_delete' => 0,
],
];
return $grants;
}