- Issue created by @tarikflz
- Status changed to Closed: outdated
7 months ago 2:29pm 30 April 2024
With drupal10, entity queries must implement accessCheck if not its causing issue like below;
Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 141 of /var/www/html/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php)
Upgrade drupal core 9 to 10
implement accessCheck at getEntityForVoting function.
Closed: outdated
1.0
Code