Problem/Motivation
Drupal 10 compatibility report has found the following issue:
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.
Proposed resolution
Add explicit access checks in the following places:
- config_entity_example/src/Form/RobotFormBase.php (line 136)
- pager_example/src/Controller/PagerExamplePage.php (line 99)
Remaining tasks
- Create a patch
- Rerun compatibility report
Issue fork examples-3340865
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3340865-add-explicit-entity
changes, plain diff MR !13
Comments
Comment #2
smustgrave commentedGoing to work on this tomorrow.
Comment #4
smustgrave commentedUsing upgrade_status addressed the 2 instances of this.
Comment #6
jungleCommitted, thanks!