Add accessCheck() to entity query in FieldInheritanceForm.php for Drupal 10 compatibility

Created on 10 January 2024, 6 months ago
Updated 24 January 2024, 5 months ago

Problem/Motivation

Upgrading from Drupal 9 to 10, the Upgrade Status module reports the following in src/Form/FieldInheritanceForm.php:529:

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.
πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡΄Colombia camilo.escobar

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024