annotate core/themes/classy/templates/user/user.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Theme override to present all user data.
Chris@0 5 *
Chris@0 6 * This template is used when viewing a registered user's page,
Chris@0 7 * e.g., example.com/user/123. 123 being the user's ID.
Chris@0 8 *
Chris@0 9 * Available variables:
Chris@0 10 * - content: A list of content items. Use 'content' to print all content, or
Chris@0 11 * print a subset such as 'content.field_example'. Fields attached to a user
Chris@0 12 * such as 'user_picture' are available as 'content.user_picture'.
Chris@0 13 * - attributes: HTML attributes for the container element.
Chris@0 14 * - user: A Drupal User entity.
Chris@0 15 *
Chris@0 16 * @see template_preprocess_user()
Chris@0 17 */
Chris@0 18 #}
Chris@0 19 <article{{ attributes.addClass('profile') }}>
Chris@0 20 {% if content %}
Chris@0 21 {{- content -}}
Chris@0 22 {% endif %}
Chris@0 23 </article>