QueryInterface::accessCheck is required on Drupal 10

Created on 6 January 2024, 6 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 β†’

Steps to reproduce

Install module in Drupal 10

Proposed resolution

Add accessCheck(FALSE) for entityQuery in src/VoteResultStorage.php

πŸ› Bug report
Status

Closed: duplicate

Component

Code

Created by

πŸ‡¨πŸ‡΄Colombia aldibier Manizales

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