1. 8.5.x core/themes/stable/templates/dataset/forums.html.twig
  2. 8.5.x core/modules/forum/templates/forums.html.twig
  3. 8.5.x core/themes/classy/templates/dataset/forums.html.twig
  4. 8.0.x core/modules/forum/templates/forums.html.twig
  5. 8.0.x core/themes/stable/templates/dataset/forums.html.twig
  6. 8.0.x core/themes/classy/templates/dataset/forums.html.twig
  7. 8.1.x core/themes/classy/templates/dataset/forums.html.twig
  8. 8.1.x core/modules/forum/templates/forums.html.twig
  9. 8.1.x core/themes/stable/templates/dataset/forums.html.twig
  10. 8.2.x core/themes/classy/templates/dataset/forums.html.twig
  11. 8.2.x core/modules/forum/templates/forums.html.twig
  12. 8.2.x core/themes/stable/templates/dataset/forums.html.twig
  13. 8.3.x core/themes/classy/templates/dataset/forums.html.twig
  14. 8.3.x core/modules/forum/templates/forums.html.twig
  15. 8.3.x core/themes/stable/templates/dataset/forums.html.twig
  16. 8.4.x core/modules/forum/templates/forums.html.twig
  17. 8.4.x core/themes/stable/templates/dataset/forums.html.twig
  18. 8.4.x core/themes/classy/templates/dataset/forums.html.twig
  19. 8.6.x core/themes/stable/templates/dataset/forums.html.twig
  20. 8.6.x core/modules/forum/templates/forums.html.twig
  21. 8.6.x core/themes/classy/templates/dataset/forums.html.twig

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_pager: The topics pager.
  • forums_defined: A flag to indicate that the forums are configured.

See also

template_preprocess_forums()

1 theme call to forums.html.twig
ForumController::build in core/modules/forum/src/Controller/ForumController.php
Returns a renderable forum index page array.

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_pager: The topics pager.
  12. * - forums_defined: A flag to indicate that the forums are configured.
  13. *
  14. * @see template_preprocess_forums()
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. {% if forums_defined %}
  20. {{ forums }}
  21. {{ topics }}
  22. {{ topics_pager }}
  23. {% endif %}

Related topics