src/BlogBundle/Form/TagType.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('name',TextType::class, array(
                "label"=>"Nombre:",
                "required"=>true, 
                "attr" =>array(
				    "class" => "form-name form-control",
			)))
            ->add('description',TextType::class, array(
                "label"=>"Descripción:",
                "required"=>false, 
                "attr" =>array(
				    "class" => "form-name form-control",
			)))
			->add('Guardar', SubmitType::class, array(
                "attr" =>array(
				    "class" => "form-submit btn btn-success",
			)))
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'name' , TextType :: class , array ( " label " => " Nombre: " , " required " => true , " attr " => array ( " class " => " form-name form-control " , ) ) ) -> add ( 'description' , TextType :: class , array ( " label " => " Descripción:" , " required " => false , " attr " => array ( " class " => " form-name form-control " , ) ) ) -> 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