src/Form/SuggestionType.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Form;
  3. use Symfony\Component\Form\AbstractType;
  4. use Symfony\Component\Form\FormBuilderInterface;
  5. use Symfony\Component\Form\Extension\Core\Type\TextareaType;
  6. /**
  7.  *
  8.  * @author wendell.zheng <wxzheng@ustc.edu.cn>
  9.  */
  10. class SuggestionType extends AbstractType
  11. {
  12.     public function buildForm(FormBuilderInterface $builder, array $options)
  13.     {
  14.         $builder->add('content'TextareaType::class, [
  15.             'label' => '问题与建议',
  16.             'attr' => [
  17.                 'rows' => 10
  18.             ],
  19.             'required' => true
  20.         ]);
  21.     }
  22. }