@@ 33-42 (lines=10) @@ | ||
30 | /** |
|
31 | * {@inheritdoc} |
|
32 | */ |
|
33 | public function buildForm(FormBuilderInterface $builder, array $options) |
|
34 | { |
|
35 | $builder->add('comparator', ChoiceType::class, [ |
|
36 | 'choices' => $this->getChoices( |
|
37 | $options['capabilities']->getSupportedComparators(), |
|
38 | $options['comparators'] |
|
39 | ), |
|
40 | ]); |
|
41 | $builder->add('value', NumberType::class); |
|
42 | } |
|
43 | ||
44 | /** |
|
45 | * {@inheritdoc} |
@@ 46-55 (lines=10) @@ | ||
43 | /** |
|
44 | * {@inheritdoc} |
|
45 | */ |
|
46 | public function buildForm(FormBuilderInterface $builder, array $options) |
|
47 | { |
|
48 | $builder->add('comparator', ChoiceType::class, [ |
|
49 | 'choices' => $this->getChoices( |
|
50 | $options['capabilities']->getSupportedComparators(), |
|
51 | $options['comparators'] |
|
52 | ), |
|
53 | ]); |
|
54 | $builder->add('value', TextType::class); |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * {@inheritdoc} |