tagadelic-taxonomy-cloud.html.twig in Tagadelic 8.3
Theme for Tagadelic module's tag cloud.
Available variables:
- tags: the tags to be displayed in the cloud
2 theme calls to tagadelic-taxonomy-cloud.html.twig
- TagadelicBlock::build in src/
Plugin/ Block/ TagadelicBlock.php - Builds and returns the renderable array for this block plugin.
- TagadelicController::content in src/
Controller/ TagadelicController.php
File
templates/tagadelic-taxonomy-cloud.html.twigView source
- {#
- /**
- * @file
- * Theme for Tagadelic module's tag cloud.
- *
- * Available variables:
- * - tags: the tags to be displayed in the cloud
- *
- * @ingroup themeable
- */
- #}
- <ul class="tag-cloud">
- {% for tag in tags %}
- <li class="level{{ tag.getWeight }}">
- <a href="{{ path('entity.taxonomy_term.canonical', {'taxonomy_term': tag.getId}) }}">{{ tag.getName }}</a>
- </li>
- {% endfor %}
- </ul>