public function Request::getQueryString

Generates the normalized query string for the Request.

It builds a normalized query string, where keys/value pairs are alphabetized and have consistent escaping.

@api

Return value

string|null A normalized query string for the Request

1 call to Request::getQueryString()
Request::getUri in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php
Generates a normalized URI for the Request.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 848

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getQueryString() {
  $qs = static::normalizeQueryString($this->server
    ->get('QUERY_STRING'));
  return '' === $qs ? null : $qs;
}