4 * Theme override for a form element label.
7 * - title: The label's text.
8 * - title_display: Elements title_display setting.
9 * - required: An indicator for whether the associated form element is required.
10 * - attributes: A list of HTML attributes for the label.
12 * @see template_preprocess_form_element_label()
17 title_display == 'after' ? 'option',
18 title_display == 'invisible' ? 'visually-hidden',
19 required ? 'js-form-required',
20 required ? 'form-required',
23 {% if title is not empty or required -%}
24 <label{{ attributes.addClass(classes) }}>{{ title }}</label>