protected function retrieveFormBasedUrl($parameterName, BaseForm $form = null)
    {
        $url = null;

        if ($form != null) {
            $url = $form->getFormDefinedUrl($parameterName);
        } else {
            $url = $this->container->get('request_stack')->getCurrentRequest()->get($parameterName);
        }

        return $url;
    }
protected function retrieveFormBasedUrl($parameterName, BaseForm $form = null)
    {
        $url = null;

        if ($form != null) {
            $url = $form->getFormDefinedUrl($parameterName);
        } else {
            $url = $this->container->get('request_stack')->getCurrentRequest()->get($parameterName);
        }

        return $url;
    }
protected function retrieveFormBasedUrl ( $ parameterName , BaseForm $ form = null ) { $ url = null ; if ( $ form != null ) { $ url = $ form -> getFormDefinedUrl ( $ parameterName ) ; } else { $ url = $ this -> container -> get ( 'request_stack' ) -> getCurrentRequest ( ) -> get ( $ parameterName ) ; } return $ url ; }
Search url in a form parameter, or in a request parameter.

@param  string $parameterName the form parameter name, or request parameter name.
@param  BaseForm  $form the form
@return mixed|null|string
Search url in a form parameter or in a request parameter .