src/Sulu/Bundle/PageBundle/Controller/PageResourcelocatorController.php
private function getWebspaceAndLanguage(Request $request)
    {
        $webspaceKey = $this->getRequestParameter($request, 'webspace', true);
        $languageCode = $this->getRequestParameter($request, 'language', true);

        return [$webspaceKey, $languageCode];
    }
private function getWebspaceAndLanguage(Request $request)
    {
        $webspaceKey = $this->getRequestParameter($request, 'webspace', true);
        $languageCode = $this->getRequestParameter($request, 'language', true);

        return [$webspaceKey, $languageCode];
    }
private function getWebspaceAndLanguage ( Request $ request ) { $ webspaceKey = $ this -> getRequestParameter ( $ request , 'webspace' , true ) ; $ languageCode = $ this -> getRequestParameter ( $ request , 'language' , true ) ; return [ $ webspaceKey , $ languageCode ] ; }
returns webspacekey and languagecode.

@param Request $request

@return array list($webspaceKey, $languageCode)
returns webspacekey and languagecode .