Bundle/WidgetBundle/Builder/WidgetFormBuilder.php
public function renderForm(Form $form, Widget $widget, $entity = null)
    {
        //the template displayed is in the widget bundle
        $templateName = $this->container->get('victoire_widget.widget_helper')->getTemplateName('edit', $widget);

        return $this->container->get('templating')->render(
            $templateName,
            [
                'widget' => $widget,
                'slot'   => $widget->getWidgetMap()->getSlot(),
                'view'   => $this->container->get('victoire_core.current_view')->getCurrentView(),
                'form'   => $form->createView(),
                'id'     => $widget->getId(),
                'entity' => $entity,
            ]
        );
    }
public function renderForm(Form $form, Widget $widget, $entity = null)
    {
        //the template displayed is in the widget bundle
        $templateName = $this->container->get('victoire_widget.widget_helper')->getTemplateName('edit', $widget);

        return $this->container->get('templating')->render(
            $templateName,
            [
                'widget' => $widget,
                'slot'   => $widget->getWidgetMap()->getSlot(),
                'view'   => $this->container->get('victoire_core.current_view')->getCurrentView(),
                'form'   => $form->createView(),
                'id'     => $widget->getId(),
                'entity' => $entity,
            ]
        );
    }
public function renderForm ( Form $ form , Widget $ widget , $ entity = null ) { //the template displayed is in the widget bundle $ templateName = $ this -> container -> get ( 'victoire_widget.widget_helper' ) -> getTemplateName ( 'edit' , $ widget ) ; return $ this -> container -> get ( 'templating' ) -> render ( $ templateName , [ 'widget' => $ widget , 'slot' => $ widget -> getWidgetMap ( ) -> getSlot ( ) , 'view' => $ this -> container -> get ( 'victoire_core.current_view' ) -> getCurrentView ( ) , 'form' => $ form -> createView ( ) , 'id' => $ widget -> getId ( ) , 'entity' => $ entity , ] ) ; }
render Widget form.

@param Form   $form
@param Widget $widget
@param object $entity

@return form
render Widget form .