You are here

protected function QueryRouteEnhancer::extractQuery in GraphQL 8.4

Same name and namespace in other branches
  1. 8.3 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

File

src/Routing/QueryRouteEnhancer.php, line 59

Class

QueryRouteEnhancer
Adds GraphQL operation information to the Symfony route being resolved.

Namespace

Drupal\graphql\Routing

Code

protected function extractQuery(Request $request) {
  return JsonHelper::decodeParams($request->query
    ->all());
}