Commit fad85296 authored by alexpott's avatar alexpott

Issue #2298923 by mparker17, er.pushpinderrana: Fixed Bartik's...

Issue #2298923 by mparker17, er.pushpinderrana: Fixed Bartik's field--taxonomy-term-reference.html.twig doesn't output content_attributes, has out-of-date documentation.
parent 8b9d600b
......@@ -5,12 +5,12 @@
*
* Available variables:
* - attributes: HTML attributes for the containing element.
* - label_hidden: Whether the field label has been set to hidden.
* - label_hidden: Whether to show the field label or not.
* - title_attributes: HTML attributes for the label.
* - label: The label for the field.
* - content_attributes: HTML attributes for the content.
* - items: List of all the field items.
* - item_attributes: HTML attributes for each item.
* - item_attributes: List of HTML attributes for each item.
*
* @see template_preprocess_field()
* @see bartik_preprocess_field()
......@@ -20,7 +20,7 @@
{% if not label_hidden %}
<h3{{ title_attributes }}>{{ label }}: </h3>
{% endif %}
<ul class="links">
<ul class="links field-items {{ content_attributes.class }}"{{ content_attributes|without('class') }}>
{% for delta, item in items %}
<li class="taxonomy-term-reference-{{ delta }}"{{ item_attributes[delta] }}>{{ item }}</li>
{% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment