yeti_theme-8.x-1.x-dev/templates/form/form-element-label.html.twig

templates/form/form-element-label.html.twig
{#
/**
 * @file
 * Yeti theme implementation for a form element label.
 *
 * Available variables:
 * - title: The label's text.
 * - title_display: Elements title_display setting.
 * - required: An indicator for whether the associated form element is required.
 * - attributes: A list of HTML attributes for the label.
 *
 * @see template_preprocess_form_element_label()
 *
 * @ingroup themeable
 */
#}
{%
  set classes = [
    title_display == 'after' ? 'option',
    title_display == 'invisible' ? 'show-for-sr',
  ]
%}

{% if title is not empty or required -%}
  <label{{ attributes.addClass(classes) }}>
    {{ title }}
{% elseif title_display == 'after' %}
  {{ title }}
{%- endif %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc