forums.html.twig in Zircon Profile 8.0
Same filename in this branch
Same filename and directory in other branches
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
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.twigView source
- {#
- /**
- * @file
- * 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 template_preprocess_forums()
- *
- * @ingroup themeable
- */
- #}
- {% if forums_defined %}
- {{ forums }}
- {{ topics }}
- {{ topics_pager }}
- {% endif %}