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.