Use the duration
type to show periods of time.
Included in the PerformBaseBundle.
How to display the duration. Use one of the DurationType::FORMAT_* constants.
This option is optional.
Allowed types: integer
Defaults:
0
2
0
0
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('length', [
'type' => 'duration',
'options' => [
'format' => DurationType::FORMAT_HUMAN,
],
]);