Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeolocationType: new options #290

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stephanecollot
Copy link

Add the possibility to set options on all the fields.

For example, this functionality allows to modify label of fields. This is useful for translating or to personalize attr.

The documentation is updated.

@@ -42,7 +42,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$type = 'hidden';
}

$builder->add($field, $type);
$builder->add($field, $type, $option['options']);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will generate a notice if someone sets "hidden" to true and doesn't define "options" index, see symfony/symfony#4833.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants