8000 [Form] Add choice_translation_parameters option for ChoiceType form by VincentLanglet · Pull Request #36851 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Form] Add choice_translation_parameters option for ChoiceType form #36851

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

Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix test
  • Loading branch information
VincentLanglet committed Oct 4, 2020
commit 026ed90a159d4c06c9344b55b17dbd29b3a72822
Original file line number Diff line numbe 10000 r Diff line change
Expand Up @@ -183,10 +183,6 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
*/
public function createView(ChoiceListInterface $list, $preferredChoices = null, $label = null, $index = null, $groupBy = null, $attr = null/*, $labelTranslationParameters = []*/)
{
if (\count(\func_get_args()) < 7) {
trigger_deprecation('symfony/form', '5.2', 'Calling %s without passing the label translation parameters is deprecated.', __METHOD__);
}

$labelTranslationParameters = \func_get_args()[6] ?? [];
$cache = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, callable $va
*/
public function createView(ChoiceListInterface $list, $preferredChoices = null, $label = null, callable $index = null, callable $groupBy = null, $attr = null/*, $labelTranslationParameters = []*/)
{
if (\count(\func_get_args()) < 7) {
trigger_deprecation('symfony/form', '5.2', 'Calling %s without passing the label translation parameters is deprecated.', __METHOD__);
}

$labelTranslationParameters = \func_get_args()[6] ?? [];
$preferredViews = [];
$preferredViewsOrder = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,6 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
*/
public function createView(ChoiceListInterface $list, $preferredChoices = null, $label = null, $index = null, $groupBy = null, $attr = null/*, $labelTranslationParameters = []*/)
{
if (\count(\func_get_args()) < 7) {
trigger_deprecation('symfony/form', '5.2', 'Calling %s without passing the label translation parameters is deprecated.', __METHOD__);
}

$labelTranslationParameters = \func_get_args()[6] ?? [];
$accessor = $this->propertyAccessor;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,44 @@
Symfony\Component\Form\Extension\Core\Type\ChoiceType (Block prefix: "choice")
==============================================================================

------------------------------- -------------------- ------------------------------ -----------------------
Options Overridden options Parent options Extension options
------------------------------- -------------------- ------------------------------ -----------------------
choice_attr FormType FormType FormTypeCsrfExtension
choice_filter -------------------- ------------------------------ -----------------------
choice_label compound action csrf_field_name
choice_loader data_class allow_file_upload csrf_message
choice_name empty_data attr csrf_protection
choice_translation_domain error_bubbling attr_translation_parameters csrf_token_id
choice_translation_parameters invalid_message auto_initialize csrf_token_manager
choice_value trim block_name
choices block_prefix
expanded by_reference
group_by data
multiple disabled
placeholder help
preferred_choices help_attr
help_html
help_translation_parameters
inherit_data
invalid_message_parameters
is_empty_callback
label
label_attr
label_format
label_html
label_translation_parameters
mapped
method
post_max_size_message
property_path
required
row_attr
setter
translation_domain
upload_max_size_message
------------------------------- -------------------- ------------------------------ -----------------------
------------------------------- -------------------- ------------------------------ -----------------------
Options Overridden options Parent options Extension options
------------------------------- -------------------- ------------------------------ -----------------------
choice_attr FormType FormType FormTypeCsrfExtension
choice_filter -------------------- ------------------------------ -----------------------
choice_label compound action csrf_field_name
choice_loader data_class allow_file_upload csrf_message
choice_name empty_data attr csrf_protection
choice_translation_domain error_bubbling attr_translation_parameters csrf_token_id
choice_translation_parameters invalid_message auto_initialize csrf_token_manager
choice_value trim block_name
choices block_prefix
expanded by_reference
group_by data
multiple disabled
placeholder getter
preferred_choices help
help_attr
help_html
help_translation_parameters
inherit_data
invalid_message_parameters
is_empty_callback
label
label_attr
label_format
label_html
label_translation_parameters
mapped
method
post_max_size_message
property_path
required
row_attr
setter
translation_domain
upload_max_size_message
------------------------------- -------------------- ------------------------------ -----------------------

Parent types
------------
Expand Down
0