You are here

node_access_test_empty.module in Drupal 10

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, $op) {
  return [];
}

/**
 * Implements hook_node_access_records().
 */
function node_access_test_empty_node_access_records(NodeInterface $node) {
  return [];
}