custom_field-1.0.x-dev/templates/custom-field-hierarchical-formatter.html.twig

templates/custom-field-hierarchical-formatter.html.twig
{#
/**
 * @file
 * Default twig file for Hierarchical Term Formatter.
 *
 * Available variables:
 * - terms: The processed taxonomy terms to display.
 * - wrapper: The HTML tag that should wrap each of the terms.
 * - separator: The text used to separate each of the terms.
 *
 * @see template_preprocess_custom_field_hierarchical_formatter()
 *
 * @ingroup themeable
 */
#}
{% if wrapper == 'ol' or wrapper == 'ul' %}
    <{{ wrapper }} class="terms-hierarchy">
{% endif %}
{% for term in terms -%}
    {{ term }}
    {% if loop.last == false %}
        <span class="separator">{{ separator }}</span>
    {% endif %}
{%- endfor %}
{% if wrapper == 'ol' or wrapper == 'ul' %}
    </{{ wrapper }}>
{% endif %}

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

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