Feat: Set preferred choices for pickups, requires more work
This commit is contained in:
@@ -22,6 +22,16 @@ class BpnPickupType extends AbstractType
|
|||||||
{
|
{
|
||||||
$resolver->setDefaults([
|
$resolver->setDefaults([
|
||||||
'choice_loader' => new BpnPickupsChoiceLoader($this->pickups),
|
'choice_loader' => new BpnPickupsChoiceLoader($this->pickups),
|
||||||
|
'preferred_choices' => [
|
||||||
|
40, // Köln
|
||||||
|
18, // Essen
|
||||||
|
86, // Montabaur
|
||||||
|
695, // Frankfurt
|
||||||
|
89, // Mannheim
|
||||||
|
698, // Karlsruhe
|
||||||
|
74, // Stuttgart
|
||||||
|
262, // Ulm
|
||||||
|
],
|
||||||
'placeholder' => 'Bitte wählen...',
|
'placeholder' => 'Bitte wählen...',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user