forum-submitted.html.twig in Drupal 9
Same filename in this branch
- 9 core/modules/forum/templates/forum-submitted.html.twig
- 9 core/themes/starterkit_theme/templates/user/forum-submitted.html.twig
- 9 core/themes/classy/templates/user/forum-submitted.html.twig
- 9 core/themes/stable9/templates/user/forum-submitted.html.twig
- 9 core/themes/stable/templates/user/forum-submitted.html.twig
- 9 core/themes/claro/templates/classy/user/forum-submitted.html.twig
- 9 core/themes/seven/templates/classy/user/forum-submitted.html.twig
- 9 core/themes/bartik/templates/classy/user/forum-submitted.html.twig
- 9 core/profiles/demo_umami/themes/umami/templates/classy/user/forum-submitted.html.twig
Same filename and directory in other branches
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
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/seven/templates/classy/user/forum-submitted.html.twigView source
- {#
- /**
- * @file
- * 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 template_preprocess_forum_submitted()
- */
- #}
- {% if time %}
- <span class="submitted">{% trans %}By {{ author }} {{ time }} ago{% endtrans %}</span>
- {% else %}
- {{ 'n/a'|t }}
- {% endif %}