forum-submitted.html.twig

Same filename in this branch
  1. 9 core/profiles/demo_umami/themes/umami/templates/classy/user/forum-submitted.html.twig
  2. 9 core/themes/seven/templates/classy/user/forum-submitted.html.twig
  3. 9 core/themes/claro/templates/classy/user/forum-submitted.html.twig
  4. 9 core/themes/bartik/templates/classy/user/forum-submitted.html.twig
  5. 9 core/themes/stable/templates/user/forum-submitted.html.twig
  6. 9 core/themes/classy/templates/user/forum-submitted.html.twig
  7. 9 core/modules/forum/templates/forum-submitted.html.twig
Same filename in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/user/forum-submitted.html.twig
  2. 8.9.x core/themes/seven/templates/classy/user/forum-submitted.html.twig
  3. 8.9.x core/themes/claro/templates/classy/user/forum-submitted.html.twig
  4. 8.9.x core/themes/bartik/templates/classy/user/forum-submitted.html.twig
  5. 8.9.x core/themes/stable/templates/user/forum-submitted.html.twig
  6. 8.9.x core/themes/classy/templates/user/forum-submitted.html.twig
  7. 8.9.x core/modules/forum/templates/forum-submitted.html.twig
  8. 10 core/profiles/demo_umami/themes/umami/templates/classy/user/forum-submitted.html.twig
  9. 10 core/themes/stable9/templates/user/forum-submitted.html.twig
  10. 10 core/themes/claro/templates/classy/user/forum-submitted.html.twig
  11. 10 core/modules/forum/templates/forum-submitted.html.twig
  12. 11.x core/profiles/demo_umami/themes/umami/templates/classy/user/forum-submitted.html.twig
  13. 11.x core/themes/stable9/templates/user/forum-submitted.html.twig
  14. 11.x core/themes/claro/templates/classy/user/forum-submitted.html.twig
  15. 11.x core/modules/forum/templates/forum-submitted.html.twig

Theme override for a forum post submission string.

The submission string indicates when and by whom a topic was submitted.

Available variables:

  • author: The author of the post.
  • time: How long ago the post was created.
  • topic: An object with the raw data of the post. Potentially unsafe. Be sure to clean this data before printing.

See also

template_preprocess_forum_submitted()

2 theme calls to forum-submitted.html.twig
template_preprocess_forums in core/modules/forum/forum.module
Prepares variables for forums templates.
template_preprocess_forum_list in core/modules/forum/forum.module
Prepares variables for forum list templates.

File

core/themes/stable9/templates/user/forum-submitted.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a forum post submission string.
  5. *
  6. * The submission string indicates when and by whom a topic was submitted.
  7. *
  8. * Available variables:
  9. * - author: The author of the post.
  10. * - time: How long ago the post was created.
  11. * - topic: An object with the raw data of the post. Potentially unsafe. Be
  12. * sure to clean this data before printing.
  13. *
  14. * @see template_preprocess_forum_submitted()
  15. */
  16. #}
  17. {% if time %}
  18. <span>{% trans %}By {{ author }} {{ time }} ago{% endtrans %}</span>
  19. {% else %}
  20. {{ 'n/a'|t }}
  21. {% endif %}

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