diff --git a/core/modules/system/templates/links.html.twig b/core/modules/system/templates/links.html.twig index 86713b5..77e7260 100644 --- a/core/modules/system/templates/links.html.twig +++ b/core/modules/system/templates/links.html.twig @@ -13,7 +13,6 @@ * to l() as its $options parameter. * - attributes: (optional) HTML attributes for the anchor, or for the * tag if no 'href' is supplied. - * - link_key: The link CSS class. * - heading: (optional) A heading to precede the links. * - text: The heading text. * - level: The heading level (e.g. 'h2', 'h3'). @@ -43,8 +42,8 @@ {%- endif -%} {%- endif -%} - {%- for key, item in links -%} - + {%- for item in links -%} + {%- if item.link -%} {{ item.link }} {%- elseif item.text_attributes -%} diff --git a/core/themes/classy/templates/content/links--node.html.twig b/core/themes/classy/templates/content/links--node.html.twig index f4c3d72..a7b91e7 100644 --- a/core/themes/classy/templates/content/links--node.html.twig +++ b/core/themes/classy/templates/content/links--node.html.twig @@ -13,7 +13,6 @@ * to l() as its $options parameter. * - attributes: (optional) HTML attributes for the anchor, or for the * tag if no 'href' is supplied. - * - link_key: The link CSS class. * - heading: (optional) A heading to precede the links. * - text: The heading text. * - level: The heading level (e.g. 'h2', 'h3'). diff --git a/core/themes/classy/templates/navigation/links.html.twig b/core/themes/classy/templates/navigation/links.html.twig index f82f41a..c1bff6b 100644 --- a/core/themes/classy/templates/navigation/links.html.twig +++ b/core/themes/classy/templates/navigation/links.html.twig @@ -13,7 +13,6 @@ * to l() as its $options parameter. * - attributes: (optional) HTML attributes for the anchor, or for the * tag if no 'href' is supplied. - * - link_key: The link CSS class. * - heading: (optional) A heading to precede the links. * - text: The heading text. * - level: The heading level (e.g. 'h2', 'h3'). @@ -41,8 +40,8 @@ {%- endif -%} {%- endif -%} - {%- for key, item in links -%} - + {%- for item in links -%} + {%- if item.link -%} {{ item.link }} {%- elseif item.text_attributes -%} diff --git a/core/themes/stable/templates/navigation/links.html.twig b/core/themes/stable/templates/navigation/links.html.twig index f82f41a..c1bff6b 100644 --- a/core/themes/stable/templates/navigation/links.html.twig +++ b/core/themes/stable/templates/navigation/links.html.twig @@ -13,7 +13,6 @@ * to l() as its $options parameter. * - attributes: (optional) HTML attributes for the anchor, or for the * tag if no 'href' is supplied. - * - link_key: The link CSS class. * - heading: (optional) A heading to precede the links. * - text: The heading text. * - level: The heading level (e.g. 'h2', 'h3'). @@ -41,8 +40,8 @@ {%- endif -%} {%- endif -%} - {%- for key, item in links -%} - + {%- for item in links -%} + {%- if item.link -%} {{ item.link }} {%- elseif item.text_attributes -%}