Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8266ce5

Browse files
Revert "Experimental commit"
This reverts commit 5a50ee8.
1 parent 17ac8f4 commit 8266ce5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Symfony/Component/Form/Extension/Core/Type/BaseType.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public function buildView(FormView $view, FormInterface $form, array $options)
4747
$labelTranslationParameters = $options['label_translation_parameters'];
4848
$attrTranslationParameters = $options['attr_translation_parameters'];
4949
$labelFormat = $options['label_format'];
50-
$labelHtml = $options['label_html'];
5150

5251
if ($view->parent) {
5352
if ('' !== ($parentFullName = $view->parent->vars['full_name'])) {
@@ -70,10 +69,6 @@ public function buildView(FormView $view, FormInterface $form, array $options)
7069
if (!$labelFormat) {
7170
$labelFormat = $view->parent->vars['label_format'];
7271
}
73-
74-
if (!$labelHtml) {
75-
$labelHtml = $view->parent->vars['label_html'];
76-
}
7772
} else {
7873
$id = $name;
7974
$fullName = $name;
@@ -102,7 +97,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
10297
'disabled' => $form->isDisabled(),
10398
'label' => $options['label'],
10499
'label_format' => $labelFormat,
105-
'label_html' => $labelHtml,
100+
'label_html' => $options['label_html'],
106101
'multipart' => false,
107102
'attr' => $options['attr'],
108103
'block_prefixes' => $blockPrefixes,

0 commit comments

Comments
 (0)