Skip to content

Commit 7d45f94

Browse files
authored
Use full Drupal deprecation message for entity access checks
Starts resolving #468
1 parent 480245d commit 7d45f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Drupal/EntityQuery/EntityQueryHasAccessCheckRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function processNode(Node $node, Scope $scope): array
4040

4141
return [
4242
RuleErrorBuilder::message(
43-
'Missing explicit access check on entity query.'
43+
'Relying on entity queries to check access by default is deprecated in drupal:9.2.0 and an error will be thrown from drupal:10.0.0. Call \Drupal\Core\Entity\Query\QueryInterface::accessCheck() with TRUE or FALSE to specify whether access should be checked. See https://www.drupal.org/node/3201242.'
4444
)->tip('See https://www.drupal.org/node/3201242')->build(),
4545
];
4646
}

0 commit comments

Comments
 (0)