src/Sulu/Bundle/CustomUrlBundle/Controller/CustomUrlController.php
public function cgetAction($webspace, Request $request)
    {
        // TODO pagination

        $result = $this->get('sulu_custom_urls.manager')->findList($webspace);

        $list = new RouteAwareRepresentation(
            new CollectionRepresentation($result, self::$relationName),
            'cget_webspace_custom-urls',
            array_merge($request->request->all(), ['webspace' => $webspace])
        );

        return $this->handleView($this->view($list));
    }
public function cgetAction($webspace, Request $request)
    {
        // TODO pagination

        $result = $this->get('sulu_custom_urls.manager')->findList($webspace);

        $list = new RouteAwareRepresentation(
            new CollectionRepresentation($result, self::$relationName),
            'cget_webspace_custom-urls',
            array_merge($request->request->all(), ['webspace' => $webspace])
        );

        return $this->handleView($this->view($list));
    }
public function cgetAction ( $ webspace , Request $ request ) { // TODO pagination $ result = $ this -> get ( 'sulu_custom_urls.manager' ) -> findList ( $ webspace ) ; $ list = new RouteAwareRepresentation ( new CollectionRepresentation ( $ result , self :: $ relationName ) , 'cget_webspace_custom-urls' , array_merge ( $ request -> request -> all ( ) , [ 'webspace' => $ webspace ] ) ) ; return $ this -> handleView ( $ this -> view ( $ list ) ) ; }
Returns a list of custom-urls.

@param string $webspace
@param Request $request

@return Response
Returns a list of custom - urls .