forums.html.twig

Default theme implementation to display a forum.

May contain forum containers as well as forum topics.

Available variables:

See also

template_preprocess()

template_preprocess_forums()

1 theme call to forums.html.twig
forum_page in drupal/core/modules/forum/forum.pages.inc
Page callback: Prints a forum listing.

File

drupal/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 (as processed by forum-topic-list.html.twig).
  11. * - forums_defined: A flag to indicate that the forums are configured.
  12. *
  13. * @see template_preprocess()
  14. * @see template_preprocess_forums()
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. {% if forums_defined %}
  20. <div id="forum">
  21. {{ forums }}
  22. {{ topics }}
  23. </div>
  24. {% endif %}

Related topics