forums.html.twig
Same filename in this branch
- 9 core/themes/olivero/templates/dataset/forums.html.twig
- 9 core/themes/stable9/templates/dataset/forums.html.twig
- 9 core/themes/seven/templates/classy/dataset/forums.html.twig
- 9 core/themes/claro/templates/classy/dataset/forums.html.twig
- 9 core/themes/bartik/templates/classy/dataset/forums.html.twig
- 9 core/themes/stable/templates/dataset/forums.html.twig
- 9 core/themes/classy/templates/dataset/forums.html.twig
- 9 core/modules/forum/templates/forums.html.twig
Same filename in other branches
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/dataset/forums.html.twig
- 8.9.x core/themes/seven/templates/classy/dataset/forums.html.twig
- 8.9.x core/themes/claro/templates/classy/dataset/forums.html.twig
- 8.9.x core/themes/bartik/templates/classy/dataset/forums.html.twig
- 8.9.x core/themes/stable/templates/dataset/forums.html.twig
- 8.9.x core/themes/classy/templates/dataset/forums.html.twig
- 8.9.x core/modules/forum/templates/forums.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/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/claro/templates/classy/dataset/forums.html.twig
- 10 core/modules/forum/templates/forums.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/dataset/forums.html.twig
- 11.x core/themes/olivero/templates/dataset/forums.html.twig
- 11.x core/themes/stable9/templates/dataset/forums.html.twig
- 11.x core/themes/claro/templates/classy/dataset/forums.html.twig
- 11.x core/modules/forum/templates/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
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/
profiles/ demo_umami/ themes/ umami/ templates/ classy/ dataset/ forums.html.twig
View 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('umami/classy.forum') }}
- {% if forums_defined %}
- <div class="forum">
- {{ forums }}
- {{ topics }}
- {{ topics_pager }}
- </div>
- {% endif %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.