Skip to content

Commit d3c6f1b

Browse files
3.x - Add custom tag to EntityQueryto make it possible to implement hook_query_TAG_alter (#1170)
* Add custom tag to EntityQuery to make it possible implementing hook_query_TAG_alter
1 parent 655525a commit d3c6f1b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

modules/graphql_core/src/Plugin/GraphQL/Fields/EntityQuery/EntityQuery.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ protected function getQuery($value, array $args, ResolveContext $context, Resolv
150150
return NULL;
151151
}
152152

153+
$query->addTag('graphql_entity_query');
154+
153155
$query->range($args['offset'], $args['limit']);
154156

155157
if (array_key_exists('revisions', $args)) {

0 commit comments

Comments
 (0)