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