private function getRedirectUrl(array $queryParams) {
        $baseUrl = $this->getReturnBaseUrl();

        if (!empty($baseUrl)) {
            return $baseUrl . (parse_url($baseUrl, PHP_URL_QUERY) ? '&' : '?') . http_build_query($queryParams);
        } else {
            throw new LtiException('Invalid LTI return url.');
        }
    }
private function getRedirectUrl(array $queryParams) {
        $baseUrl = $this->getReturnBaseUrl();

        if (!empty($baseUrl)) {
            return $baseUrl . (parse_url($baseUrl, PHP_URL_QUERY) ? '&' : '?') . http_build_query($queryParams);
        } else {
            throw new LtiException('Invalid LTI return url.');
        }
    }
private function getRedirectUrl ( array $ queryParams ) { $ baseUrl = $ this -> getReturnBaseUrl ( ) ; if ( ! empty ( $ baseUrl ) ) { return $ baseUrl . ( parse_url ( $ baseUrl , PHP_URL_QUERY ) ? '&' : '?' ) . http_build_query ( $ queryParams ) ; } else { throw new LtiException ( 'Invalid LTI return url.' ) ; } }
Build LTI return url with query parameters.

@param array $queryParams
@return string
@throws LtiException
@throws \common_exception_Error
Build LTI return url with query parameters .