diff --git a/core/themes/bartik/bartik.theme b/core/themes/bartik/bartik.theme index 2503303f402267fed999f907cb099a5fdfa114e2..836a8f72df4a7566a4566bbf6ac3e5d5f57feea5 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 1f05c3e30fb7bc537d0d200bc3af404040946d85..840f9941a04b634254038064fbfd87c3290ed1bc 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 @@ #}
{% if not label_hidden %} - {{ label }}: + {{ label }}: {% endif %}