From 1cb5e60f99b6394e4ff2ba166c9dcc7c58dc3fcb Mon Sep 17 00:00:00 2001 From: Daniel Bosen Date: Wed, 14 Aug 2024 16:02:59 +0200 Subject: [PATCH] rename query --- .../src/Plugin/GraphQL/DataProducer/ThunderSearchApi.php | 2 +- .../GraphQL/DataProducer/ThunderSearchApiProducerBase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderSearchApi.php b/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderSearchApi.php index f10b02fd8..c824a81af 100644 --- a/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderSearchApi.php +++ b/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderSearchApi.php @@ -72,7 +72,7 @@ protected function resolve( ?string $search, FieldContext $cacheContext, ): ?SearchApiResponse { - $query = $this->getQuery( + $query = $this->buildBaseQuery( $limit, $offset, $index, diff --git a/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderSearchApiProducerBase.php b/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderSearchApiProducerBase.php index eefa5b722..89e74207c 100644 --- a/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderSearchApiProducerBase.php +++ b/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderSearchApiProducerBase.php @@ -98,7 +98,7 @@ public function __construct( * * @throws \Drupal\search_api\SearchApiException */ - protected function getQuery( + protected function buildBaseQuery( int $limit, int $offset, string $index,