public function visitForm(FormInterface $form)
    {
        $template = "form/{$form->getType()}.twig";

        return $this
            ->loadTemplate($template)
            ->render(
                [
                    "id" => $form->getId(),
                    "classes" => $form->getClasses(),
                    "data" => $form->getData(),
                    "method" => $form->getMethod(),
                    "target" => $form->getTarget(),
                    "writables" => $form->getWritableBearer()->getWritables(),
                    "actions" => $form->getActions(),
                    "errors" => $form->getErrors(),
                ]
            );
    }
public function visitForm(FormInterface $form)
    {
        $template = "form/{$form->getType()}.twig";

        return $this
            ->loadTemplate($template)
            ->render(
                [
                    "id" => $form->getId(),
                    "classes" => $form->getClasses(),
                    "data" => $form->getData(),
                    "method" => $form->getMethod(),
                    "target" => $form->getTarget(),
                    "writables" => $form->getWritableBearer()->getWritables(),
                    "actions" => $form->getActions(),
                    "errors" => $form->getErrors(),
                ]
            );
    }
public function visitForm ( FormInterface $ form ) { $ template = "form/{$form->getType()}.twig" ; return $ this -> loadTemplate ( $ template ) -> render ( [ "id" => $ form -> getId ( ) , "classes" => $ form -> getClasses ( ) , "data" => $ form -> getData ( ) , "method" => $ form -> getMethod ( ) , "target" => $ form -> getTarget ( ) , "writables" => $ form -> getWritableBearer ( ) -> getWritables ( ) , "actions" => $ form -> getActions ( ) , "errors" => $ form -> getErrors ( ) , ] ) ; }
Render FormInterface into html.

This method is generally called via double-dispatch, as provided by Visitor\VisitableTrait.

@param FormInterface $form
@return string
Render FormInterface into html .