Smile\ElasticsuiteCatalog\Block\Navigation\Renderer\Attribute::getAjaxLoadUrl PHP Method

getAjaxLoadUrl() private method

Get the AJAX load URL (used by the show more and the search features).
private getAjaxLoadUrl ( ) : string
return string
    private function getAjaxLoadUrl()
    {
        $qsParams = ['filterName' => $this->getFilter()->getRequestVar()];
        $currentCategory = $this->getFilter()->getLayer()->getCurrentCategory();
        if ($currentCategory && $currentCategory->getId() && $currentCategory->getLevel() > 1) {
            $qsParams['cat'] = $currentCategory->getId();
        }
        $urlParams = ['_current' => true, '_query' => $qsParams];
        return $this->_urlBuilder->getUrl('catalog/navigation_filter/ajax', $urlParams);
    }