function node_test_node_grants_alter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/tests/modules/node_test/node_test.module \node_test_node_grants_alter()
Implements hook_node_grants_alter().
File
- core/
modules/ node/ tests/ modules/ node_test/ node_test.module, line 116 - A dummy module for testing node related hooks.
Code
function node_test_node_grants_alter(&$grants, AccountInterface $account, $op) {
// Return an empty array of grants to prove that we can alter by reference.
$grants = array();
}