From 313604ee55eeb7b42b3857fb27ac1e6954cc38ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 18 Oct 2023 18:16:05 +0200 Subject: [PATCH] Feat: Set preferred choices for pickups, requires more work --- src/Form/BpnPickupType.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Form/BpnPickupType.php b/src/Form/BpnPickupType.php index c23ac00..3cbc554 100644 --- a/src/Form/BpnPickupType.php +++ b/src/Form/BpnPickupType.php @@ -22,6 +22,16 @@ class BpnPickupType extends AbstractType { $resolver->setDefaults([ '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...', ]); }