src/Sulu/Bundle/PageBundle/Controller/PageResourcelocatorController.php
public function postGenerateAction(Request $request)
    {
        $parentUuid = $this->getRequestParameter($request, 'parent');
        $parts = $this->getRequestParameter($request, 'parts', true);
        $templateKey = $this->getRequestParameter($request, 'template', true);
        $webspaceKey = $this->getRequestParameter($request, 'webspace', true);
        $languageCode = $this->getLocale($request);

        $result = $this->getResourceLocatorRepository()->generate(
            $parts,
            $parentUuid,
            $webspaceKey,
            $languageCode,
            $templateKey
        );

        return $this->handleView($this->view($result));
    }
public function postGenerateAction(Request $request)
    {
        $parentUuid = $this->getRequestParameter($request, 'parent');
        $parts = $this->getRequestParameter($request, 'parts', true);
        $templateKey = $this->getRequestParameter($request, 'template', true);
        $webspaceKey = $this->getRequestParameter($request, 'webspace', true);
        $languageCode = $this->getLocale($request);

        $result = $this->getResourceLocatorRepository()->generate(
            $parts,
            $parentUuid,
            $webspaceKey,
            $languageCode,
            $templateKey
        );

        return $this->handleView($this->view($result));
    }
public function postGenerateAction ( Request $ request ) { $ parentUuid = $ this -> getRequestParameter ( $ request , 'parent' ) ; $ parts = $ this -> getRequestParameter ( $ request , 'parts' , true ) ; $ templateKey = $ this -> getRequestParameter ( $ request , 'template' , true ) ; $ webspaceKey = $ this -> getRequestParameter ( $ request , 'webspace' , true ) ; $ languageCode = $ this -> getLocale ( $ request ) ; $ result = $ this -> getResourceLocatorRepository ( ) -> generate ( $ parts , $ parentUuid , $ webspaceKey , $ languageCode , $ templateKey ) ; return $ this -> handleView ( $ this -> view ( $ result ) ) ; }
return resource-locator for sub-node.

@throws MissingArgumentException

@deprecated since 2.0, use ResourcelocatorController::postAction instead

@return Response
return resource - locator for sub - node .