]>
Commit | Line | Data |
---|---|---|
d275bdf4 NL |
1 | <?php |
2 | ||
3 | namespace Wallabag\CoreBundle\Form\Type; | |
4 | ||
5 | use Symfony\Component\Form\AbstractType; | |
6 | use Symfony\Component\Form\FormBuilderInterface; | |
7 | ||
8 | class UploadImportType extends AbstractType | |
9 | { | |
10 | public function buildForm(FormBuilderInterface $builder, array $options) | |
11 | { | |
12 | $builder | |
13 | ->add('file', 'file') | |
14 | ->add('save', 'submit') | |
15 | ; | |
16 | } | |
17 | ||
18 | public function getDefaultOptions(array $options) | |
19 | { | |
20 | return array( | |
21 | 'csrf_protection' => false, | |
22 | ); | |
23 | } | |
24 | ||
25 | public function getName() | |
26 | { | |
27 | return 'upload_import_file'; | |
28 | } | |
29 | } |