src/Sulu/Bundle/PageBundle/Controller/PageResourcelocatorController.php
public function cdeleteAction($id, Request $request)
    {
        list($webspaceKey, $languageCode) = $this->getWebspaceAndLanguage($request);
        $path = $this->getRequestParameter($request, 'ids', true); // TODO rename path to id in all function names

        $this->getResourceLocatorRepository()->delete($path, $webspaceKey, $languageCode);
        $this->getDocumentManager()->flush();

        return $this->handleView($this->view());
    }
public function cdeleteAction($id, Request $request)
    {
        list($webspaceKey, $languageCode) = $this->getWebspaceAndLanguage($request);
        $path = $this->getRequestParameter($request, 'ids', true); // TODO rename path to id in all function names

        $this->getResourceLocatorRepository()->delete($path, $webspaceKey, $languageCode);
        $this->getDocumentManager()->flush();

        return $this->handleView($this->view());
    }
public function cdeleteAction ( $ id , Request $ request ) { list ( $ webspaceKey , $ languageCode ) = $ this -> getWebspaceAndLanguage ( $ request ) ; $ path = $ this -> getRequestParameter ( $ request , 'ids' , true ) ; // TODO rename path to id in all function names $ this -> getResourceLocatorRepository ( ) -> delete ( $ path , $ webspaceKey , $ languageCode ) ; $ this -> getDocumentManager ( ) -> flush ( ) ; return $ this -> handleView ( $ this -> view ( ) ) ; }
deletes resource locator with given path.

@param string $id
@param Request $request

@return Response
deletes resource locator with given path .