Sonata\ProductBundle\Controller\CollectionController::listSideMenuCollectionsAction PHP Method

listSideMenuCollectionsAction() public method

public listSideMenuCollectionsAction ( null $collection = null, integer $depth = 1, integer $deep ) : Symfony\Bundle\FrameworkBundle\Controller\Response
$collection null
$depth integer
$deep integer
return Symfony\Bundle\FrameworkBundle\Controller\Response
    public function listSideMenuCollectionsAction($collection = null, $depth = 1, $deep = 0)
    {
        $collection = $collection ?: $this->get('sonata.classification.manager.collection')->getRootCollection();
        return $this->render('SonataProductBundle:Collection:side_menu_collection.html.twig', array('root_collection' => $collection, 'depth' => $depth, 'deep' => $deep + 1));
    }