Need accessCheck for entity queries

Created on 20 April 2024, 7 months ago
Updated 22 July 2024, 4 months ago

Problem/Motivation

A couple changes were missed in the Drupal 10 upgrade:

 ------ ----------------------------------------------------------------------- 
  Line   src/Controller/DefaultController.php                                   
 ------ ----------------------------------------------------------------------- 
  97     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                             
 ------ ----------------------------------------------------------------------- 
 ------ ----------------------------------------------------------------------- 
  Line   src/Form/StyleguidePatternForm.php                                     
 ------ ----------------------------------------------------------------------- 
  77     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                                               
 ------ ----------------------------------------------------------------------- 
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan ptmkenny

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024