private-message.html.twig in Open Social 8
Same filename and directory in other branches
- 8.9 themes/socialbase/templates/private_message/private-message.html.twig
- 8.2 themes/socialbase/templates/private_message/private-message.html.twig
- 8.3 themes/socialbase/templates/private_message/private-message.html.twig
- 8.4 themes/socialbase/templates/private_message/private-message.html.twig
- 8.5 themes/socialbase/templates/private_message/private-message.html.twig
- 8.6 themes/socialbase/templates/private_message/private-message.html.twig
- 8.7 themes/socialbase/templates/private_message/private-message.html.twig
- 8.8 themes/socialbase/templates/private_message/private-message.html.twig
Default theme implementation to display a private message.
Available variables:
- private_message: The private message entity with limited access to object properties and methods.
- content: All private message items. Use {{ content }} to print them all, or print a subset such as {{ content.field_example }}. Use {{ content|without('field_example') }} to temporarily suppress the printing of a given child element.
- url: Direct URL of the current private message.
- view_mode: View mode; for example, "teaser" or "full".
- logged_in: Flag for authenticated user status. Will be true when the current user is a logged-in member.
See also
File
themes/socialbase/templates/private_message/private-message.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display a private message.
- *
- * Available variables:
- * - private_message: The private message entity
- * with limited access to object properties and methods.
- * - content: All private message items. Use {{ content }} to print them all,
- * or print a subset such as {{ content.field_example }}. Use
- * {{ content|without('field_example') }} to temporarily suppress the printing
- * of a given child element.
- * - url: Direct URL of the current private message.
- * - view_mode: View mode; for example, "teaser" or "full".
- * - logged_in: Flag for authenticated user status. Will be true when the
- * current user is a logged-in member.
- *
- * @see template_preprocess_private_message()
- *
- * @ingroup themeable
- */
- #}
- {% if view_mode == 'inbox' %}
-
- {{ content.created }}
- <div class="message__excerpt">
- {{ content.owner }}
- {{ content.message }}
- </div>
- {% else %}
-
- {{ content }}
-
- {% endif %}