Problem/Motivation
AFAICT since #1801726: EntityFieldQuery v2, hook_entity_query_alter()
has been dead. Discovered in #2557815: Automatically bubble the "user.node_grants:$op" cache context in node_query_node_access_alter().
That leaves only hook_query_TAG_alter()
, which is presumably enough.
Proposed resolution
Either:
- revive
hook_entity_query_alter()
- remove its documentation
Given we are almost releasing Drupal 8, I think option 2 is the best option. Plus, nobody seems to have noticed in three years… If the need arises, we could always add back this hook.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2611638-2.patch | 1.06 KB | Nikhilesh Gupta |
#2 | 2611638-1.patch | 1.16 KB | Wim Leers |
Comments
Comment #2
Wim LeersComment #3
dawehnerIMHO we should figure out common usecases for that in contrib and evaluate based upon that, whether its okay to never support it.
Comment #4
dpiThis was an annoyance I didnt expect to come across.
Comment #6
Nikhilesh Gupta CreditAttribution: Nikhilesh Gupta as a volunteer and at Melity commentedAgainst the 8.2.x-dev branch
Comment #7
chx CreditAttribution: chx at Smartsheet commentedI added this to D7 to change the execute callback. No need for that now.
Comment #8
alexpottDead documentation is a bug. Committed and pushed 73be8c49eccae54ca8540dbe56b7d8a1dc4c24df to 8.3.x and 8160ba7 to 8.2.x and 0e5dd35 to 8.1.x. Thanks!
Comment #13
bradjones1If anyone misses this hook, see the work ongoing at #2909970: Implement a query-level entity access API (if you needed it for access-related purposes) or a temporary work-around using events at https://github.com/BradJonesLLC/entity_query_alter
Comment #14
bojanz CreditAttribution: bojanz at Centarro commented#3001496: Add an alter hook to EntityQuery