Example #1
0
 /**
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $arrayType = Route::getAllRouteType();
     $builder->add('url', TextType::class, array('required' => true))->add('type', ChoiceType::class, array('choices' => $arrayType, 'required' => true))->add('objectClass', TextType::class, array('required' => false))->add('variableName', TextType::class, array('required' => false))->add('foreignKey', TextType::class, array('required' => false))->add('action', TextType::class, array('required' => true));
 }