Webiny\Component\Http\Request::query PHP Méthode

query() public méthode

If key doesn't not exist, $value will be returned and assigned under that key.
public query ( string $key = null, mixed $value = null ) : mixed
$key string Key for which you wish to get the value.
$value mixed Default value that will be returned if $key doesn't exist.
Résultat mixed Value of the given $key.
    public function query($key = null, $value = null)
    {
        return $this->isNull($key) ? $this->query->getAll() : $this->query->get($key, $value);
    }