diff --git a/Form/Type/PhoneNumberType.php b/Form/Type/PhoneNumberType.php index 2f01548c..2e15790d 100644 --- a/Form/Type/PhoneNumberType.php +++ b/Form/Type/PhoneNumberType.php @@ -97,6 +97,10 @@ public function buildForm(FormBuilderInterface $builder, array $options) $countryOptions['choices'] = $countryChoices; $countryOptions['preferred_choices'] = $options['preferred_country_choices']; + if ($options['default_region'] !== PhoneNumberUtil::UNKNOWN_REGION) { + $countryOptions['data'] = $options['default_region']; + } + if ($options['country_placeholder']) { $countryOptions['placeholder'] = $options['country_placeholder']; }