diff --git a/Form/Type/PhoneNumberType.php b/Form/Type/PhoneNumberType.php index d7990979..f815511d 100644 --- a/Form/Type/PhoneNumberType.php +++ b/Form/Type/PhoneNumberType.php @@ -101,6 +101,10 @@ public function buildForm(FormBuilderInterface $builder, array $options) $countryOptions['placeholder'] = $options['country_placeholder']; } + if ($options['number_options']) { + $numberOptions = $numberOptions + $options['number_options']; + } + $builder ->add('country', $choiceType, $countryOptions) ->add('number', $textType, $numberOptions) @@ -150,6 +154,7 @@ public function configureOptions(OptionsResolver $resolver) 'error_bubbling' => false, 'country_choices' => array(), 'country_placeholder' => false, + 'number_options' => false, 'preferred_country_choices' => array(), ) );