yii\data\Pagination::getQueryParam PHP Method

getQueryParam() protected method

This method returns the named parameter value from [[params]]. Null is returned if the value does not exist.
protected getQueryParam ( string $name, string $defaultValue = null ) : string
$name string the parameter name
$defaultValue string the value to be returned when the specified parameter does not exist in [[params]].
return string the parameter value
    protected function getQueryParam($name, $defaultValue = null)
    {
        if (($params = $this->params) === null) {
            $request = Yii::$app->getRequest();
            $params = $request instanceof Request ? $request->getQueryParams() : [];
        }
        return isset($params[$name]) && is_scalar($params[$name]) ? $params[$name] : $defaultValue;
    }