1 | <?php |
||
17 | class MoneyFieldset extends Fieldset implements InputFilterProviderInterface |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | 3 | public function init() |
|
23 | { |
||
24 | 3 | $this->add([ |
|
25 | 3 | 'type' => Number::class, |
|
26 | 3 | 'name' => 'amount', |
|
27 | 'options' => [ |
||
28 | 3 | 'label' => 'Amount', |
|
29 | 3 | ], |
|
30 | 'attributes' => [ |
||
31 | 3 | 'step' => '0.01', |
|
32 | 3 | ], |
|
33 | 3 | ]); |
|
34 | |||
35 | 3 | $this->add([ |
|
36 | 3 | 'type' => CurrencySelect::class, |
|
37 | 3 | 'name' => 'currency', |
|
38 | 'options' => [ |
||
39 | 3 | 'label' => 'Currency', |
|
40 | 3 | ], |
|
41 | 3 | ]); |
|
42 | 3 | } |
|
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | 3 | public function getInputFilterSpecification() |
|
51 | } |
||
52 |