From 676546776e99c5d7281f6ff2ed6f31571daf5537 Mon Sep 17 00:00:00 2001 From: catch Date: Thu, 6 Apr 2023 15:05:18 +0100 Subject: [PATCH] Issue #3352401 by andypost: Fix leftover mentions of hook_node_access to hook_ENTITY_TYPE_access --- .../modules/book_breadcrumb_test/book_breadcrumb_test.module | 2 +- .../content_moderation/tests/src/Functional/NodeAccessTest.php | 2 +- .../node/tests/modules/node_access_test/node_access_test.module | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/book/tests/modules/book_breadcrumb_test/book_breadcrumb_test.module b/core/modules/book/tests/modules/book_breadcrumb_test/book_breadcrumb_test.module index 526da71dac3..78f046b1121 100644 --- a/core/modules/book/tests/modules/book_breadcrumb_test/book_breadcrumb_test.module +++ b/core/modules/book/tests/modules/book_breadcrumb_test/book_breadcrumb_test.module @@ -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'); diff --git a/core/modules/content_moderation/tests/src/Functional/NodeAccessTest.php b/core/modules/content_moderation/tests/src/Functional/NodeAccessTest.php index 1207a683f4c..4b2fdab08c2 100644 --- a/core/modules/content_moderation/tests/src/Functional/NodeAccessTest.php +++ b/core/modules/content_moderation/tests/src/Functional/NodeAccessTest.php @@ -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', diff --git a/core/modules/node/tests/modules/node_access_test/node_access_test.module b/core/modules/node/tests/modules/node_access_test/node_access_test.module index de51ddf57ed..fe2668147b7 100644 --- a/core/modules/node/tests/modules/node_access_test/node_access_test.module +++ b/core/modules/node/tests/modules/node_access_test/node_access_test.module @@ -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()