summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2014-07-23 09:06:07 (GMT)
committerAlex Pott2014-07-23 09:06:07 (GMT)
commitfad852961d72a4ad0632308198d59cece3ce4b4f (patch)
tree87c496213b993973c2e1b409b9c6ffd15608514e
parent8b9d600b1a3f96ed3016ea06cac71fd8e339de8d (diff)
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.
-rw-r--r--core/themes/bartik/templates/field--taxonomy-term-reference.html.twig6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/themes/bartik/templates/field--taxonomy-term-reference.html.twig b/core/themes/bartik/templates/field--taxonomy-term-reference.html.twig
index 840f994..4c579ee 100644
--- a/core/themes/bartik/templates/field--taxonomy-term-reference.html.twig
+++ b/core/themes/bartik/templates/field--taxonomy-term-reference.html.twig
@@ -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 %}