Issue #3352401 by andypost: Fix leftover mentions of hook_node_access to hook_ENTITY_TYPE_access

merge-requests/3789/head
catch 2023-04-06 15:05:18 +01:00
parent 084b8fc5e0
commit 676546776e
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ use Drupal\Core\Session\AccountInterface;
use Drupal\node\NodeInterface;
/**
* Implements hook_node_access().
* Implements hook_ENTITY_TYPE_access().
*/
function book_breadcrumb_test_node_access(NodeInterface $node, $operation, AccountInterface $account) {
$config = \Drupal::config('book_breadcrumb_test.settings');

View File

@ -165,7 +165,7 @@ class NodeAccessTest extends ModerationStateTestBase {
$this->assertSession()->statusCodeEquals(200);
// Now create a private node that the user is not granted access to by the
// node grants, but is granted access via hook_node_access().
// node grants, but is granted access via hook_ENTITY_TYPE_access().
// @see node_access_test_node_access
$node = $this->createNode([
'type' => 'moderated_content',

View File

@ -144,7 +144,7 @@ function node_access_test_add_field(NodeTypeInterface $type) {
}
/**
* Implements hook_node_access().
* Implements hook_ENTITY_TYPE_access().
*/
function node_access_test_node_access(NodeInterface $node, $op, AccountInterface $account) {
$secret_catalan = \Drupal::state()