Skip to content

Commit 5a50ee8

Browse files
Experimental commit
1 parent 73fa136 commit 5a50ee8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ 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'];
5051

5152
if ($view->parent) {
5253
if ('' !== ($parentFullName = $view->parent->vars['full_name'])) {
@@ -69,6 +70,10 @@ public function buildView(FormView $view, FormInterface $form, array $options)
6970
if (!$labelFormat) {
7071
$labelFormat = $view->parent->vars['label_format'];
7172
}
73+
74+
if (!$labelHtml) {
75+
$labelHtml = $view->parent->vars['label_html'];
76+
}
7277
} else {
7378
$id = $name;
7479
$fullName = $name;
@@ -97,7 +102,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
97102
'disabled' => $form->isDisabled(),
98103
'label' => $options['label'],
99104
'label_format' => $labelFormat,
100-
'label_html' => $options['label_html'],
105+
'label_html' => $labelHtml,
101106
'multipart' => false,
102107
'attr' => $options['attr'],
103108
'block_prefixes' => $blockPrefixes,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy