src/BlogBundle/Form/PageType.php
/**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
@param FormBuilderInterface $builder
@param array $options
@param FormBuilderInterface $builder @param array $options
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('title',TextType::class, array("label"=>"Titulo:","required"=>"false", "attr" =>array(
				"class" => "form-name form-control",
			)))
            ->add('description',TextareaType::class, array("label"=>"Descripción:","required"=>"false", "attr" =>array(
				"class" => "form-name form-control tinymce",
			)))
			->add('Guardar', SubmitType::class, array("attr" =>array(
				"class" => "form-submit btn btn-success",
			)))
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'title' , TextType :: class , array ( " label " => " Titulo: " , " required " => " false " , " attr " => array ( " class " => " form-name form-control " , ) ) ) -> add ( 'description' , TextareaType :: class , array ( " label " => " Descripción:" , " r equired" = >" f alse" , a ttr" >a rray( " class " => " form-name form-control tinymce " , ) ) ) -> add ( 'Guardar' , SubmitType :: class , array ( " attr " => array ( " class " => " form-submit btn btn-success " , ) ) ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options