node_access_test_empty.module
Same filename in other branches
Empty node access hook implementations.
File
-
core/
modules/ node/ tests/ modules/ node_access_test_empty/ node_access_test_empty.module
View source
<?php
/**
* @file
* Empty node access hook implementations.
*/
use Drupal\node\NodeInterface;
/**
* Implements hook_node_grants().
*/
function node_access_test_empty_node_grants($account, $operation) {
return [];
}
/**
* Implements hook_node_access_records().
*/
function node_access_test_empty_node_access_records(NodeInterface $node) {
return [];
}
Functions
Title | Deprecated | Summary |
---|---|---|
node_access_test_empty_node_access_records | Implements hook_node_access_records(). | |
node_access_test_empty_node_grants | Implements hook_node_grants(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.