Bundle/WidgetBundle/Builder/WidgetFormBuilder.php
public function renderNewForm($form, $widget, $slot, View $view, $quantum = null, $entity = null)
    {
        //the template displayed is in the widget bundle
        $templateName = $this->container->get('victoire_widget.widget_helper')->getTemplateName('new', $widget);

        return $this->container->get('templating')->render(
            $templateName,
            [
                'widget'  => $widget,
                'form'    => $form->createView(),
                'slot'    => $slot,
                'entity'  => $entity,
                'view'    => $view,
                'quantum' => $quantum,
            ]
        );
    }
public function renderNewForm($form, $widget, $slot, View $view, $quantum = null, $entity = null)
    {
        //the template displayed is in the widget bundle
        $templateName = $this->container->get('victoire_widget.widget_helper')->getTemplateName('new', $widget);

        return $this->container->get('templating')->render(
            $templateName,
            [
                'widget'  => $widget,
                'form'    => $form->createView(),
                'slot'    => $slot,
                'entity'  => $entity,
                'view'    => $view,
                'quantum' => $quantum,
            ]
        );
    }
public function renderNewForm ( $ form , $ widget , $ slot , View $ view , $ quantum = null , $ entity = null ) { //the template displayed is in the widget bundle $ templateName = $ this -> container -> get ( 'victoire_widget.widget_helper' ) -> getTemplateName ( 'new' , $ widget ) ; return $ this -> container -> get ( 'templating' ) -> render ( $ templateName , [ 'widget' => $ widget , 'form' => $ form -> createView ( ) , 'slot' => $ slot , 'entity' => $ entity , 'view' => $ view , 'quantum' => $ quantum , ] ) ; }
create form new for a widget.

@param Form   $form
@param Widget $widget
@param string $slot
@param View   $view
@param string $entity

@return string
create form new for a widget .