Skip to content

Commit 9358812

Browse files
committed
Rename key to name
1 parent 5978baf commit 9358812

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Plugin/GraphQL/Fields/SearchAPISearch.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,9 @@ private function prepareSearchQuery($args) {
329329
} elseif($option['value']) {
330330
$value = $option['value'];
331331
} else {
332-
throw new SearchApiException("Option '{$option['key']}' must have value in 'value' or 'json' argument.");
332+
throw new SearchApiException("Option '{$option['name']}' must have value in 'value' or 'json' argument.");
333333
}
334-
$this->query->setOption($option['key'], $value);
334+
$this->query->setOption($option['name'], $value);
335335
}
336336
}
337337
// Adding more like this parameters to the query.

src/Plugin/GraphQL/InputTypes/SearchApiQueryOptions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* description = @Translation("Allow passing Search API query options.
1414
* For simple string use ""value"" field, for array - use ""json"" field as JSON string"),
1515
* fields = {
16-
* "key" = "String!",
16+
* "name" = "String!",
1717
* "value" = "String",
1818
* "json" = "String",
1919
* }

0 commit comments

Comments
 (0)