Elcodi\Store\ProductBundle\Controller\CategoryController::navAction PHP Method

navAction() public method

Renders the category nav component
public navAction ( ) : Response
return Symfony\Component\HttpFoundation\Response Response
    public function navAction()
    {
        $masterRequest = $this->get('request_stack')->getMasterRequest();
        $currentCategory = $this->getCurrentCategoryGivenRequest($masterRequest);
        $categoryTree = $this->get('elcodi_store.store_category_tree')->load();
        return $this->renderTemplate('Subpages:category-nav.html.twig', ['currentCategory' => $currentCategory, 'categoryTree' => $categoryTree]);
    }