Relying on entity queries to check access

Created on 3 April 2025, 4 days ago

Problem/Motivation

Upgrade status shows error:
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.
On files: RedirectSubscriber.php , UrlRedirectForm.php and url_redirect.install

Steps to reproduce

Apply: "Automated Drupal 11 compatibility fixes for url_redirect https://www.drupal.org/project/url_redirect/issues/3435247 πŸ“Œ Automated Drupal 11 compatibility fixes for url_redirect Needs review
drupal_11_compatibility-3435247-6.patch

Proposed resolution

Add QueryInterface::accessCheck() with TRUE or FALSE

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cesarcasg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024