forums.html.twig

Same filename in this branch
  1. 11.x core/profiles/demo_umami/themes/umami/templates/classy/dataset/forums.html.twig
  2. 11.x core/themes/olivero/templates/dataset/forums.html.twig
  3. 11.x core/themes/stable9/templates/dataset/forums.html.twig
  4. 11.x core/themes/claro/templates/classy/dataset/forums.html.twig
Same filename and directory in other branches
  1. 9 core/profiles/demo_umami/themes/umami/templates/classy/dataset/forums.html.twig
  2. 9 core/themes/olivero/templates/dataset/forums.html.twig
  3. 9 core/themes/stable9/templates/dataset/forums.html.twig
  4. 9 core/themes/seven/templates/classy/dataset/forums.html.twig
  5. 9 core/themes/claro/templates/classy/dataset/forums.html.twig
  6. 9 core/themes/bartik/templates/classy/dataset/forums.html.twig
  7. 9 core/themes/stable/templates/dataset/forums.html.twig
  8. 9 core/themes/classy/templates/dataset/forums.html.twig
  9. 9 core/modules/forum/templates/forums.html.twig
  10. 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/dataset/forums.html.twig
  11. 8.9.x core/themes/seven/templates/classy/dataset/forums.html.twig
  12. 8.9.x core/themes/claro/templates/classy/dataset/forums.html.twig
  13. 8.9.x core/themes/bartik/templates/classy/dataset/forums.html.twig
  14. 8.9.x core/themes/stable/templates/dataset/forums.html.twig
  15. 8.9.x core/themes/classy/templates/dataset/forums.html.twig
  16. 8.9.x core/modules/forum/templates/forums.html.twig
  17. 10 core/profiles/demo_umami/themes/umami/templates/classy/dataset/forums.html.twig
  18. 10 core/themes/olivero/templates/dataset/forums.html.twig
  19. 10 core/themes/stable9/templates/dataset/forums.html.twig
  20. 10 core/themes/claro/templates/classy/dataset/forums.html.twig
  21. 10 core/modules/forum/templates/forums.html.twig

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_original: Original topics data before modification.
  • 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/modules/forum/templates/forums.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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_original: Original topics data before modification.
  12. * - topics_pager: The topics pager.
  13. * - forums_defined: A flag to indicate that the forums are configured.
  14. *
  15. * @see template_preprocess_forums()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. {% if forums_defined %}
  21. {{ forums }}
  22. {{ topics }}
  23. {{ topics_pager }}
  24. {% endif %}

Related topics


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.