Chris@0: {# Chris@0: /** Chris@0: * @file Chris@0: * Default theme implementation for displaying a username. Chris@0: * Chris@0: * Available variables: Chris@0: * - account: The full account information for the user. Chris@0: * - uid: The user ID, or zero if not a user. As used in anonymous comments. Chris@0: * - name: The user's name, sanitized, and optionally truncated. Chris@0: * - name_raw: The user's name, un-truncated. Chris@0: * - truncated: Whether the user's name was truncated. Chris@0: * - extra: Additional text to append to the user's name, sanitized. Chris@0: * - profile_access: Whether the current user has permission to access this Chris@0: users profile page. Chris@0: * - link_path: The path or URL of the user's profile page, home page, Chris@0: * or other desired page to link to for more information about the user. Chris@0: * - homepage: (optional) The home page of the account, only set for non users. Chris@0: * - link_options: Options to set on the \Drupal\Core\Url object if linking the Chris@0: * user's name to the user's page. Chris@0: * - attributes: HTML attributes for the containing element. Chris@0: * Chris@0: * @see template_preprocess_username() Chris@0: * Chris@0: * @ingroup themeable Chris@0: */ Chris@0: #} Chris@0: {% if link_path -%} Chris@0: {{ name }}{{ extra }} Chris@0: {%- else -%} Chris@0: {{ name }}{{ extra }} Chris@0: {%- endif -%}