Search\Controller\Component\PrgComponent::_filterParams PHP Method

_filterParams() protected method

Filters the params from POST data and merges in the whitelisted query string ones.
protected _filterParams ( ) : array
return array
    protected function _filterParams()
    {
        $params = Hash::filter($this->request->data);
        if (!$this->config('queryStringWhitelist')) {
            return $params;
        }
        foreach ($this->config('queryStringWhitelist') as $field) {
            if (!isset($params[$field]) && $this->request->query($field) !== null) {
                $params[$field] = $this->request->query($field);
            }
        }
        return $params;
    }