'Symfony easyAdmin configureFields DateTimeFields

I try set range of hours and minutes for DateTimeFields but is no result.

public function configureFields(string $pageName): iterable { return [ IdField::new('id') ->onlyOnIndex(), AssociationField::new('car'), AssociationField::new('employee'), DateTimeField::new('start_date', DateTimeType::class, [ 'minutes' => [0], 'hours' => [8,9,10,11,12,13,14,15] ]), ChoiceField::new('result') ->setChoices([ 'Pass' => 'pass', 'Fail' => 'fail']), ]; }

Whats is the correct way to set range of hours and minutes ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source