Skip to content

Commit 4be2cdb

Browse files
committed
change option name for HTML labels from html_label to label_html for consistency with base symfony templates
1 parent b077c6b commit 4be2cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/form/theme.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@
5858
{% if show_label -%}
5959
<span {% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>
6060
{%- if translation_domain is same as(false) -%}
61-
{%- if html_label is not defined or html_label is same as(false) -%}
61+
{%- if label_html is not defined or label_html is same as(false) -%}
6262
{{- label -}}
6363
{%- else -%}
6464
{{- label|raw -}}
6565
{%- endif -%}
6666
{%- else -%}
67-
{%- if html_label is not defined or html_label is same as(false) -%}
67+
{%- if label_html is not defined or label_html is same as(false) -%}
6868
{{- label|trans(label_translation_parameters, translation_domain) -}}
6969
{%- else -%}
7070
{{- label|trans(label_translation_parameters, translation_domain)|raw -}}

0 commit comments

Comments
 (0)