epub-formatter-toc.html.twig in Epub 8
<div class="ebook"> <a href="{{ file }}"> {% trans %}Download{% endtrans %} </a> {{ toc | raw }} </div>
1 theme call to epub-formatter-toc.html.twig
- EpubTableOfContent::viewElements in src/
Plugin/ Field/ FieldFormatter/ EpubTableOfContent.php - Builds a renderable array for a field value.
File
templates/epub-formatter-toc.html.twigView source
- <div class="ebook">
- <a href="{{ file }}">
- {% trans %}Download{% endtrans %}
- </a>
- {{ toc | raw }}
- </div>