Issue #3352401 by andypost: Fix leftover mentions of hook_node_access to hook_ENTITY_TYPE_access
parent
084b8fc5e0
commit
676546776e
|
@ -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');
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue