How to display the user name that created the profile (the owner or author of the profile)? I have a site with Drupal 8 and I want to customize the templates of my pages.

I use the module:


"Profile" https://www.drupal.org/project/issues/profile


Here is my template to customize the profile page:

{#
/**
 * @file
 *
 * Default theme implementation for profiles.
 *
 * Available variables:
 * - content: Items for the content of the profile.
 *   Use 'content' to print them all, or print a subset such as
 *   'content.title'. Use the following code to exclude the
 *   printing of a given child element:
 *   @code
 *   {{ content|without('title') }}
 *   @endcode
 * - attributes: HTML attributes for the wrapper.
 * - profile: The profile object.
 * - url: The profile URL, if available.
 *
 * @ingroup themeable
 */
#}
&lt;div{{ attributes.addClass('profile--personnel--teaser') }}&gt;

  &lt;div class="views-row"&gt;

    &lt;h3 class="views-teaser-title"&gt;
      {{ ??? USERNAME ??? }}
    &lt;/h3&gt;

  &lt;/div&gt;

&lt;/div&gt;


How to display the user name that created the profile (the owner of the profile) ?
You can get from getOwner() method

  {{ profile.getOwner().name.value }}
  {{ profile.getOwner().mail.value }}