diff --git a/core/themes/stable/templates/dataset/item-list--splitbutton.html.twig b/core/themes/stable/templates/dataset/item-list--splitbutton.html.twig new file mode 100644 index 0000000000..4d3a96dbe9 --- /dev/null +++ b/core/themes/stable/templates/dataset/item-list--splitbutton.html.twig @@ -0,0 +1,20 @@ +{# +/** + * @file + * Theme override for an item list used by splitbuttons. + * + * Available variables: + * - items: A list of items. Each item contains: + * - attributes: HTML attributes to be applied to each list item. + * - value: The content of the list element. + * - list_type: The tag for list element ("ul" or "ol"). + * - attributes: HTML attributes to be applied to the list. + */ +#} +{% if items %} + <{{ list_type }} {{ attributes }}> + {%- for item in items -%} + {{ item.value }} + {%- endfor -%} + +{%- endif %} diff --git a/core/themes/stable9/templates/dataset/item-list--splitbutton.html.twig b/core/themes/stable9/templates/dataset/item-list--splitbutton.html.twig new file mode 100644 index 0000000000..4d3a96dbe9 --- /dev/null +++ b/core/themes/stable9/templates/dataset/item-list--splitbutton.html.twig @@ -0,0 +1,20 @@ +{# +/** + * @file + * Theme override for an item list used by splitbuttons. + * + * Available variables: + * - items: A list of items. Each item contains: + * - attributes: HTML attributes to be applied to each list item. + * - value: The content of the list element. + * - list_type: The tag for list element ("ul" or "ol"). + * - attributes: HTML attributes to be applied to the list. + */ +#} +{% if items %} + <{{ list_type }} {{ attributes }}> + {%- for item in items -%} + {{ item.value }} + {%- endfor -%} + +{%- endif %}