micon-icon-list.html.twig in Micon 2.x
Same filename and directory in other branches
micon-icon-list.html.twig Default theme implementation to present a list of Micon icons/svgs.
See also
2 theme calls to micon-icon-list.html.twig
- micon_template_preprocess_micon_package__font in ./
micon.theme.inc - Prepares variables for Micon package templates of type ICON.
- micon_template_preprocess_micon_package__image in ./
micon.theme.inc - Prepares variables for Micon package templates of type SVG.
File
templates/micon-icon-list.html.twigView source
- {#
- /**
- * @file micon-icon-list.html.twig
- * Default theme implementation to present a list of Micon icons/svgs.
- *
- * @see template_preprocess_micon_icon_list()
- *
- * @ingroup themeable
- */
- #}
-
- {%
- set classes = [
- 'micon-icon-list',
- ]
- %}
- {% if content %}
- {{- content -}}
- {% endif %}
- <ul{{ attributes.addClass(classes) }}>
- {% for icon in icons %}
- <li>{{ icon }}</li>
- {% endfor %}
- </ul>