{% block checkbox_radio_label %} {# Do not display the label if widget is not defined in order to prevent double label rendering #} {% if widget is defined %} {% if required %} {% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) %} {% endif %} {% if parent_label_class is defined %} {% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|trim}) %} {% endif %} {% if label is not sameas(false) and label is empty %} {% set label = name|humanize %} {% endif %} {{- widget|raw -}} {{- label is not sameas(false) ? label|trans({}, translation_domain) -}} {% endif %} {% endblock checkbox_radio_label %}