Use the money
type for instances of moneyphp/money objects.
Included in the PerformBaseBundle.
An array of options to pass to the underlying form type.
This option is optional.
Allowed types: array
Defaults:
[]
[]
[]
[]
The label to use for form labels and table headings. If no label is provided, a sensible label will be created automatically.
This option is optional.
Allowed types: string
Defaults:
<?php
$config->add('amount', [
'type' => 'money',
'options' => [
'form_options' => [
'default_currency' => 'GBP',
'currencies' => ['GBP', 'EUR', 'USD'],
]
]
]);