Xpressengine\Http\Request::originOnly PHP Method

originOnly() public method

Get a subset of the origin items from the input data.
public originOnly ( array $keys ) : array
$keys array item keys
return array
    public function originOnly($keys)
    {
        $keys = is_array($keys) ? $keys : func_get_args();
        $results = [];
        $input = $this->originAll();
        foreach ($keys as $key) {
            Arr::set($results, $key, Arr::get($input, $key));
        }
        return $results;
    }