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

Created on 10 January 2024, 11 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

Closed: duplicate

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

Comments & Activities

Production build 0.71.5 2024