Drupal 10 compatibility, entityQuery accessCheck

Created on 16 May 2023, over 1 year ago
Updated 17 May 2023, over 1 year ago

Problem/Motivation

Drupal 10 requires accessCheck() for entityQuery

Steps to reproduce

Install safedelete with Drupal 10 and run it

Proposed resolution

see changes

Remaining tasks

review/test/commit

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada joseph.olstad

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

Comments & Activities

  • Issue created by @joseph.olstad
  • Assigned to joseph.olstad
  • First commit to issue fork.
  • 🇮🇳India dineshkumarbollu

    Hi

    The patch applied cleanly but still some D10 errors are showing.

    vendor/bin/drush upgrade_status:analyze safedelete
    [notice] Processing /var/www/html/vbd9/web/modules/contrib/safedelete-3360591.

    ================================================================================
    SafeDelete, --
    Scanned on Tue, 05/16/2023 - 12:51

    FILE: web/modules/contrib/safedelete-3360591/safedelete.module

    STATUS LINE MESSAGE
    --------------------------------------------------------------------------------
    Check manually 62 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.
    --------------------------------------------------------------------------------
    Check manually 224 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.
    --------------------------------------------------------------------------------
    Check manually 252 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.
    --------------------------------------------------------------------------------

    FILE: web/modules/contrib/safedelete-3360591/src/AdminHelper.php

    STATUS LINE MESSAGE
    --------------------------------------------------------------------------------
    Check manually 91 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.
    --------------------------------------------------------------------------------
    Check manually 315 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.
    --------------------------------------------------------------------------------
    Check manually 429 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.
    --------------------------------------------------------------------------------
    Check manually 561 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.
    --------------------------------------------------------------------------------
    Check manually 582 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.
    --------------------------------------------------------------------------------
    Check manually 648 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.
    --------------------------------------------------------------------------------

    FILE: web/modules/contrib/safedelete-3360591/src/Form/SafedeleteSettingsForm.php

    STATUS LINE MESSAGE
    --------------------------------------------------------------------------------
    Check manually 204 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.

  • Issue was unassigned.
  • Status changed to Fixed over 1 year ago
  • Status changed to Needs review over 1 year ago
  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024