- Issue created by @Bohus Ulrych
Access checking was introduced for Drupal 10: Access checking must be explicitly specified on content entity queries
https://www.drupal.org/node/3201242 →
Without it there is an error
Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck().
Can be fixed with
$fids = Drupal::entityQuery('file')->accessCheck(FALSE)->execute();
P.S. I like the simplicity of this module!
Active
1.0
Code