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

indexAction() public method

List the main collections.
public indexAction ( ) : Response
return Response
    public function indexAction()
    {
        $pager = $this->get('sonata.classification.manager.collection')->getRootCollectionsPager($this->get('request')->get('page'));
        return $this->render('SonataProductBundle:Collection:index.html.twig', array('pager' => $pager));
    }