Same filename in this branch
  1. 10 core/modules/forum/templates/forums.html.twig
  2. 10 core/themes/olivero/templates/dataset/forums.html.twig
  3. 10 core/themes/stable9/templates/dataset/forums.html.twig
  4. 10 core/themes/claro/templates/classy/dataset/forums.html.twig
  5. 10 core/profiles/demo_umami/themes/umami/templates/classy/dataset/forums.html.twig
Same filename and directory in other branches
  1. 9 core/themes/olivero/templates/dataset/forums.html.twig

Theme override 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/themes/olivero/templates/dataset/forums.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  17. {{ attach_library('olivero/forum') }}
  18. {% if forums_defined %}
  19. <div class="forum">
  20. {{ forums }}
  21. {{ topics }}
  22. {{ topics_pager }}
  23. </div>
  24. {% endif %}