svg-formatter.html.twig in SVG Formatter 8
{% if inline %} {{ svg_data|raw }} {% else %} <img{{ attributes }} src={{ file_url(uri) }} /> {% endif %}
1 theme call to svg-formatter.html.twig
- SvgFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ SvgFormatter.php - Builds a renderable array for a field value.
File
templates/svg-formatter.html.twigView source
- {% if inline %}
- {{ svg_data|raw }}
- {% else %}
- <img{{ attributes }} src={{ file_url(uri) }} />
- {% endif %}