Need to implement hook_query_TAG_alter per parent entity type to work with views correctly?

Created on 5 May 2023, about 1 year ago
Updated 9 May 2023, about 1 year ago

Postponed on ✨ Add an entity query access API and deprecate hook_query_ENTITY_TYPE_access_alter() Needs work

Problem/Motivation

Reading https://drupal.stackexchange.com/questions/300952/entity-query-on-custom... I'm wondering, if we need to implement hook_query_TAG_alter to make views working with this correctly?

Documentation says correctly:

Note that this hook is not called for listings (e.g., from entity queries and Views). For nodes, see Node access rights for a full explanation. For other entity types, see hook_query_TAG_alter().

See the function documentation page and https://api.drupal.org/api/drupal/core%21modules%21node%21node.module/fu... for examples. Perhaps also look into other permission related modules for examples!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Postponed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024