src/Form/LevelType.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Form;
  3. use Symfony\Component\Form\FormBuilderInterface;
  4. /**
  5.  *
  6.  * @author wendell.zheng <wxzheng@ustc.edu.cn>
  7.  */
  8. class LevelType extends NameType
  9. {
  10.     public function buildForm(FormBuilderInterface $builder, array $options)
  11.     {
  12.         parent::buildForm($builder$options);
  13.         $builder->add('Category'null, [
  14.             'label' => '项目类型',
  15.             'disabled' => true
  16.         ]);
  17.     }
  18. }