- ๐บ๐ธUnited States davidwbarratt
Honestly if we want to be stricter about it, we could add a method to EntityAccessControlHandlerInterface that forces entities to alter the entity query (or pass). Which makes it clearer when implementing a custom entity that you need to handle access controlled queries.
- ๐บ๐ธUnited States davidwbarratt
You can kind of do this now with hook_entity_query_ENTITY_TYPE_alter. The problem is that you cannot access the
accessCheck
property without using reflection โ .A very simple implementation could be to either provide access to that property, or by adding an `alterTag` for `access`.
I think that mostly solves the problem described in the issue? I imagine it could be a more comprehensive API, but it's a good first step?