src/Sulu/Bundle/PageBundle/Controller/NodeController.php
public function indexAction(Request $request)
    {
        $language = $this->getLanguage($request);
        $webspace = $this->getWebspace($request);

        $result = $this->getRepository()->getIndexNode($webspace, $language);

        return $this->handleView($this->view($result));
    }
public function indexAction(Request $request)
    {
        $language = $this->getLanguage($request);
        $webspace = $this->getWebspace($request);

        $result = $this->getRepository()->getIndexNode($webspace, $language);

        return $this->handleView($this->view($result));
    }
public function indexAction ( Request $ request ) { $ language = $ this -> getLanguage ( $ request ) ; $ webspace = $ this -> getWebspace ( $ request ) ; $ result = $ this -> getRepository ( ) -> getIndexNode ( $ webspace , $ language ) ; return $ this -> handleView ( $ this -> view ( $ result ) ) ; }
returns a content item for startpage.

@param Request $request

@return \Symfony\Component\HttpFoundation\Response
returns a content item for startpage .