forum-topic.html.twig

Same filename in this branch
  1. 11.x core/themes/stable9/templates/dataset/forum-topic.html.twig
Same filename and directory in other branches
  1. 10 core/themes/stable9/templates/dataset/forum-topic.html.twig
  2. 10 core/modules/forum/templates/forum-topic.html.twig

Default theme implementation to display a forum topic.

Available variables:

  • title_link: The forum title link to display.
  • submitted: Indicates when and by whom a topic was submitted.

See also

template_preprocess_forums()

1 theme call to forum-topic.html.twig
template_preprocess_forums in core/modules/forum/forum.module
Prepares variables for forums templates.

File

core/modules/forum/templates/forum-topic.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a forum topic.
  5. *
  6. * Available variables:
  7. * - title_link: The forum title link to display.
  8. * - submitted: Indicates when and by whom a topic was submitted.
  9. *
  10. * @see template_preprocess_forums()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <div class="forum__title">
  16. <div>{{ title_link }}</div>
  17. <div>{{ submitted }}</div>
  18. </div>

Related topics


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