fontawesomeicons.html.twig in Font Awesome Icons 8.2
Default implementation for Font Awesome icons.
Available variables:
- icons: a list of Font Awesome icons to be rendered.
- layers: flag indicating if icons are printing as layers.
1 theme call to fontawesomeicons.html.twig
- FontAwesomeIconFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ FontAwesomeIconFormatter.php - Builds a renderable array for a field value.
File
templates/fontawesomeicons.html.twigView source
- {#
- /**
- * @file
- * Default implementation for Font Awesome icons.
- *
- * Available variables:
- * - icons: a list of Font Awesome icons to be rendered.
- * - layers: flag indicating if icons are printing as layers.
- *
- * @ingroup themeable
- */
- #}
- <div class="fontawesome-icons">
- {% if layers == '1' %}
- <span class="fa-layers fa-fw">{{ icons }}</span>
- {% else %}
- {{ icons }}
- {% endif %}
- </div>