protected function QueryRouteEnhancer::extractQuery in GraphQL 8.3
Same name and namespace in other branches
- 8.4 src/Routing/QueryRouteEnhancer.php \Drupal\graphql\Routing\QueryRouteEnhancer::extractQuery()
Extracts the query parameters from a request.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The http request object.
Return value
array The normalized query parameters.
1 call to QueryRouteEnhancer::extractQuery()
- QueryRouteEnhancer::enhance in src/
Routing/ QueryRouteEnhancer.php - Update the defaults based on its own data and the request.
File
- src/
Routing/ QueryRouteEnhancer.php, line 48
Class
Namespace
Drupal\graphql\RoutingCode
protected function extractQuery(Request $request) {
return JsonHelper::decodeParams($request->query
->all());
}