Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5a50ee8

Browse files
Experimental commit
1 parent73fa136 commit5a50ee8

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)

[8]ページ先頭

©2009-2025 Movatter.jp