1 | <?php |
||
14 | class HeaderPagePartAdminType extends AbstractType |
||
15 | { |
||
16 | /** |
||
17 | * @param \Symfony\Component\Form\FormBuilderInterface $builder |
||
18 | * @param array $options |
||
19 | */ |
||
20 | 1 | public function buildForm(FormBuilderInterface $builder, array $options) |
|
21 | { |
||
22 | 1 | $builder->add( |
|
23 | 1 | 'niv', |
|
24 | 1 | ChoiceType::class, |
|
25 | array( |
||
26 | 1 | 'label' => 'pagepart.header.type', |
|
27 | 'choices' => array('Header 1' => '1', 'Header 2' => '2', 'Header 3' => '3', 'Header 4' => '4', 'Header 5' => '5', 'Header 6' => '6'), |
||
28 | 'required' => true, |
||
29 | ) |
||
30 | ); |
||
31 | 1 | $builder->add('title', TextType::class, array( |
|
32 | 1 | 'label' => 'pagepart.header.title', |
|
33 | 'required' => true, |
||
34 | )); |
||
35 | 1 | } |
|
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getBlockPrefix() |
||
44 | |||
45 | /** |
||
46 | * @param \Symfony\Component\OptionsResolver\OptionsResolver $resolver |
||
47 | */ |
||
48 | 1 | public function configureOptions(OptionsResolver $resolver) |
|
56 | } |
||
57 |