You are here

forums.html.twig in Drupal 10

Default theme implementation to display a forum.

May contain forum containers as well as forum topics.

Available variables:

  • forums: The forums to display (as processed by forum-list.html.twig).
  • topics: The topics to display.
  • topics_original: Original topics data before modification.
  • topics_pager: The topics pager.
  • forums_defined: A flag to indicate that the forums are configured.

File

core/modules/forum/templates/forums.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a forum.
  5. *
  6. * May contain forum containers as well as forum topics.
  7. *
  8. * Available variables:
  9. * - forums: The forums to display (as processed by forum-list.html.twig).
  10. * - topics: The topics to display.
  11. * - topics_original: Original topics data before modification.
  12. * - topics_pager: The topics pager.
  13. * - forums_defined: A flag to indicate that the forums are configured.
  14. *
  15. * @see template_preprocess_forums()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. {% if forums_defined %}
  21. {{ forums }}
  22. {{ topics }}
  23. {{ topics_pager }}
  24. {% endif %}

Related topics