summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2014-07-12 05:47:59 (GMT)
committerwebchick2014-07-12 05:47:59 (GMT)
commit783db6db0aa1038c7bd076ebbcda30f585eacd48 (patch)
treebb73c7f461ef495695df82fd05ea4c89cbdb6834
parent883577b673a325d0873ae239e3717f620d6acff9 (diff)
Issue #2301599 by Cottser, mparker17: Fixed Regression: Bartik's field--taxonomy-term-reference.html.twig doesn't properly output label attributes.
-rw-r--r--core/themes/bartik/bartik.theme2
-rw-r--r--core/themes/bartik/templates/field--taxonomy-term-reference.html.twig4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/themes/bartik/bartik.theme b/core/themes/bartik/bartik.theme
index 2503303..836a8f7 100644
--- a/core/themes/bartik/bartik.theme
+++ b/core/themes/bartik/bartik.theme
@@ -159,7 +159,7 @@ function bartik_menu_tree__shortcut_default($variables) {
function bartik_preprocess_field(&$variables) {
$element = $variables['element'];
if ($element['#field_type'] == 'taxonomy_term_reference') {
- $variables['title_attributes']['class'][] = array('field-label');
+ $variables['title_attributes']['class'][] = 'field-label';
if ($variables['element']['#label_display'] == 'inline') {
$variables['title_attributes']['class'][] = 'inline';
}
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 1f05c3e..840f994 100644
--- a/core/themes/bartik/templates/field--taxonomy-term-reference.html.twig
+++ b/core/themes/bartik/templates/field--taxonomy-term-reference.html.twig
@@ -6,7 +6,7 @@
* Available variables:
* - attributes: HTML attributes for the containing element.
* - label_hidden: Whether the field label has been set to hidden.
- * - label_attributes: HTML attributes for the label.
+ * - 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.
@@ -18,7 +18,7 @@
#}
<div class="{{ attributes.class }} clearfix"{{ attributes|without('class') }}>
{% if not label_hidden %}
- <h3{{ label_attributes }}>{{ label }}: </h3>
+ <h3{{ title_attributes }}>{{ label }}: </h3>
{% endif %}
<ul class="links">
{% for delta, item in items %}