src/Zicht/Bundle/FrameworkExtraBundle/Helper/EmbedHelper.php
public function getFormId(FormInterface $form)
    {
        if (is_object($form->getData())) {
            $ret = preg_replace('/\W/', '_', get_class($form->getData()));
        } else {
            if ($form->getName()) {
                return (string)$form->getName();
            } else {
                return preg_replace('/\W/', '_', get_class($form));
            }
        }
        return $ret;
    }
public function getFormId(FormInterface $form)
    {
        if (is_object($form->getData())) {
            $ret = preg_replace('/\W/', '_', get_class($form->getData()));
        } else {
            if ($form->getName()) {
                return (string)$form->getName();
            } else {
                return preg_replace('/\W/', '_', get_class($form));
            }
        }
        return $ret;
    }
public function getFormId ( FormInterface $ form ) { if ( is_object ( $ form -> getData ( ) ) ) { $ ret = preg_replace ( '/\W/' , '_' , get_class ( $ form -> getData ( ) ) ) ; } else { if ( $ form -> getName ( ) ) { return ( string ) $ form -> getName ( ) ; } else { return preg_replace ( '/\W/' , '_' , get_class ( $ form ) ) ; } } return $ ret ; }
Returns the ID the form's state is stored by in the session

@param \Symfony\Component\Form\FormInterface $form
@return mixed
Returns the ID the form s state is stored by in the session