You are here

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

File

templates/tagadelic-taxonomy-cloud.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme for Tagadelic module's tag cloud.
  5. *
  6. * Available variables:
  7. * - tags: the tags to be displayed in the cloud
  8. *
  9. * @ingroup themeable
  10. */
  11. #}
  12. <ul class="tag-cloud">
  13. {% for tag in tags %}
  14. <li class="level{{ tag.getWeight }}">
  15. <a href="{{ path('entity.taxonomy_term.canonical', {'taxonomy_term': tag.getId}) }}">{{ tag.getName }}</a>
  16. </li>
  17. {% endfor %}
  18. </ul>