4 * Theme override for an item list.
7 * - alignment: (optional) The alignment of the dropdown menu.
8 * - items: A list of items. Each item contains:
9 * - attributes: HTML attributes to be applied to each list item.
10 * - value: The content of the list element.
11 * - title: The title of the list.
12 * - list_type: The tag for list element ("ul" or "ol").
13 * - wrapper_attributes: HTML attributes to be applied to the list wrapper.
14 * - attributes: HTML attributes to be applied to the list.
15 * - empty: A message to display when there are no items. Allowed value is a
16 * string or render array.
17 * - context: A list of contextual data associated with the list. May contain:
18 * - list_style: The custom list style.
22 * @see template_preprocess_item_list()
28 alignment == 'left' ? 'dropdown-menu-left',
29 alignment == 'right' ? 'dropdown-menu-right',
32 {% if items or empty -%}
34 <{{ list_type }}{{ attributes.addClass(classes) }} role="menu">
35 {%- for item in items -%}
36 <li{{ item.attributes }}>{{ item.value }}</li>