private function initLayer()
    {
        $this->layerResolver->create($this->getLayerType());

        if ($this->getRequest()->getParam('cat')) {
            $category = $this->categoryFactory->create()->setId($this->getRequest()->getParam('cat'));
            $this->layerResolver->get()->setCurrentCategory($category);
        }

        $this->applyFilters();

        return $this;
    }
private function initLayer()
    {
        $this->layerResolver->create($this->getLayerType());

        if ($this->getRequest()->getParam('cat')) {
            $category = $this->categoryFactory->create()->setId($this->getRequest()->getParam('cat'));
            $this->layerResolver->get()->setCurrentCategory($category);
        }

        $this->applyFilters();

        return $this;
    }
private function initLayer ( ) { $ this -> layerResolver -> create ( $ this -> getLayerType ( ) ) ; if ( $ this -> getRequest ( ) -> getParam ( 'cat' ) ) { $ category = $ this -> categoryFactory -> create ( ) -> setId ( $ this -> getRequest ( ) -> getParam ( 'cat' ) ) ; $ this -> layerResolver -> get ( ) -> setCurrentCategory ( $ category ) ; } $ this -> applyFilters ( ) ; return $ this ; }
Init the current navigation layer.

@return \Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax
Init the current navigation layer .