Skip to content

Commit

Permalink
3.x - Add custom tag to EntityQueryto make it possible to implement h…
Browse files Browse the repository at this point in the history
…ook_query_TAG_alter (#1170)

* Add custom tag to EntityQuery to make it possible implementing hook_query_TAG_alter
  • Loading branch information
carolpettirossi authored Sep 7, 2023
1 parent 655525a commit d3c6f1b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ protected function getQuery($value, array $args, ResolveContext $context, Resolv
return NULL;
}

$query->addTag('graphql_entity_query');

$query->range($args['offset'], $args['limit']);

if (array_key_exists('revisions', $args)) {
Expand Down

0 comments on commit d3c6f1b

Please sign in to comment.