forums.html.twig in Drupal 10
Same filename in this branch
- 10 core/modules/forum/templates/forums.html.twig
- 10 core/themes/starterkit_theme/templates/dataset/forums.html.twig
- 10 core/themes/classy/templates/dataset/forums.html.twig
- 10 core/themes/olivero/templates/dataset/forums.html.twig
- 10 core/themes/stable9/templates/dataset/forums.html.twig
- 10 core/themes/stable/templates/dataset/forums.html.twig
- 10 core/themes/claro/templates/classy/dataset/forums.html.twig
- 10 core/themes/seven/templates/classy/dataset/forums.html.twig
- 10 core/themes/bartik/templates/classy/dataset/forums.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/dataset/forums.html.twig
Same filename and directory in other branches
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
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/seven/templates/classy/dataset/forums.html.twigView source
- {#
- /**
- * @file
- * 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 template_preprocess_forums()
- */
- #}
- {{ attach_library('seven/classy.forum') }}
- {% if forums_defined %}
- <div class="forum">
- {{ forums }}
- {{ topics }}
- {{ topics_pager }}
- </div>
- {% endif %}