node_access_test_empty.module

Same filename in other branches
  1. 8.9.x core/modules/node/tests/modules/node_access_test_empty/node_access_test_empty.module
  2. 10 core/modules/node/tests/modules/node_access_test_empty/node_access_test_empty.module
  3. 11.x core/modules/node/tests/modules/node_access_test_empty/node_access_test_empty.module

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 [];
}

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.