You are here

public function Request::getParsedInput in RESTful 7.2

Parses the input data provided via URL params.

Return value

array The parsed input.

Overrides RequestInterface::getParsedInput

1 call to Request::getParsedInput()
Request::getPagerInput in src/Http/Request.php
Get the normalized pager input.

File

src/Http/Request.php, line 250
Contains \Drupal\restful\Http\Request

Class

Request
Deals with everything coming from the consumer.

Namespace

Drupal\restful\Http

Code

public function getParsedInput() {
  if (isset($this->parsedInput)) {
    return $this->parsedInput;
  }

  // Get the input data provided via URL.
  $this->parsedInput = $this->query;
  unset($this->parsedInput['q']);
  return $this->parsedInput;
}