Commit 67654677 authored by catch's avatar catch
Browse files

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

parent 084b8fc5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
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');
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ public function testPageAccess() {
    $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',
+1 −1
Original line number Diff line number Diff line
@@ -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()