src/Sulu/Bundle/RouteBundle/Controller/RouteController.php
public function cgetAction(Request $request)
    {
        // required parameter
        $locale = $this->getRequestParameter($request, 'locale', true);
        $entityClass = $this->getRequestParameter($request, 'entityClass', true);
        $entityId = $this->getRequestParameter($request, 'entityId', true);

        // optional parameter
        $history = $this->getBooleanRequestParameter($request, 'history', false, false);

        $routes = $this->findRoutes($history, $entityClass, $entityId, $locale);

        return $this->handleView($this->view(new CollectionRepresentation($routes, 'routes')));
    }
public function cgetAction(Request $request)
    {
        // required parameter
        $locale = $this->getRequestParameter($request, 'locale', true);
        $entityClass = $this->getRequestParameter($request, 'entityClass', true);
        $entityId = $this->getRequestParameter($request, 'entityId', true);

        // optional parameter
        $history = $this->getBooleanRequestParameter($request, 'history', false, false);

        $routes = $this->findRoutes($history, $entityClass, $entityId, $locale);

        return $this->handleView($this->view(new CollectionRepresentation($routes, 'routes')));
    }
public function cgetAction ( Request $ request ) { // required parameter $ locale = $ this -> getRequestParameter ( $ request , 'locale' , true ) ; $ entityClass = $ this -> getRequestParameter ( $ request , 'entityClass' , true ) ; $ entityId = $ this -> getRequestParameter ( $ request , 'entityId' , true ) ; // optional parameter $ history = $ this -> getBooleanRequestParameter ( $ request , 'history' , false , false ) ; $ routes = $ this -> findRoutes ( $ history , $ entityClass , $ entityId , $ locale ) ; return $ this -> handleView ( $ this -> view ( new CollectionRepresentation ( $ routes , 'routes' ) ) ) ; }
Returns list of routes for given entity.

@param Request $request

@return Response
Returns list of routes for given entity .