Arrilot\Widgets\Factories\JavascriptFactory::constructAjaxCall PHP Method

constructAjaxCall() protected method

Construct ajax call for loaders.
protected constructAjaxCall ( ) : string
return string
    protected function constructAjaxCall()
    {
        $queryParams = ['id' => WidgetId::get(), 'name' => $this->widgetFactory->widgetName, 'params' => $this->widgetFactory->encryptWidgetParams($this->widgetFactory->widgetFullParams)];
        $url = $this->ajaxLink . '?' . http_build_query($queryParams);
        return $this->useJquery() ? $this->constructJqueryAjaxCall($url) : $this->constructNativeJsAjaxCall($url);
    }