QueryInterface::accessCheck is required on Drupal 10

Created on 9 November 2023, about 1 year ago
Updated 13 September 2024, 3 months ago

Problem/Motivation

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

Proposed resolution

- Add accessCheck(TRUE) for entityQuery in src/Form/SaveAllNodesForm.php::getNodeIds()
- Add accessCheck(TRUE) for entityQuery in src/Commands/SaveAllNodesCommands.php::saveNodes()

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇦Canada mlanteigne

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

Comments & Activities

Production build 0.71.5 2024