diff --git a/core/modules/user/templates/user.html.twig b/core/modules/user/templates/user.html.twig index 45c4ea0..d60f294 100644 --- a/core/modules/user/templates/user.html.twig +++ b/core/modules/user/templates/user.html.twig @@ -8,20 +8,12 @@ * * Available variables: * - content: A list of content items. Use 'content' to print all content, or - * print a subset such as 'content.field_example'. - * - Field variables: For each field attached to the user a corresponding - * variable is defined; e.g., account.field_example has a variable - * 'field_example' defined. When needing to access a field's raw values, - * developers/themers are strongly encouraged to use these variables. - * Otherwise they will have to explicitly specify the desired field language, - * e.g. account.field_example.en, thus overriding any language negotiation - * rule that was previously applied. + * print a subset such as 'content.field_example'. Fields attached to a user + * such as 'user_picture' are available as 'content.user_picture'. * - attributes: HTML attributes for the container element. * - user: A Drupal User entity. * * @see template_preprocess_user() - * - * @ingroup themeable */ #} diff --git a/core/modules/user/tests/themes/user_test_theme/user.html.twig b/core/modules/user/tests/themes/user_test_theme/user.html.twig index 715a79e..415b7a5 100644 --- a/core/modules/user/tests/themes/user_test_theme/user.html.twig +++ b/core/modules/user/tests/themes/user_test_theme/user.html.twig @@ -8,14 +8,8 @@ * * Available variables: * - content: A list of content items. Use 'content' to print all content, or - * print a subset such as 'content.field_example'. - * - Field variables: For each field attached to the user a corresponding - * variable is defined; e.g., account.field_example has a variable - * 'field_example' defined. When needing to access a field's raw values, - * developers/themers are strongly encouraged to use these variables. - * Otherwise they will have to explicitly specify the desired field language, - * e.g. account.field_example.en, thus overriding any language negotiation - * rule that was previously applied. + * print a subset such as 'content.field_example'. Fields attached to a user + * such as 'user_picture' are available as 'content.user_picture'. * - attributes: HTML attributes for the container element. * - user: A Drupal User entity. * diff --git a/core/themes/classy/templates/user/user.html.twig b/core/themes/classy/templates/user/user.html.twig index 9ee9c0a..9a824ef 100644 --- a/core/themes/classy/templates/user/user.html.twig +++ b/core/themes/classy/templates/user/user.html.twig @@ -8,14 +8,8 @@ * * Available variables: * - content: A list of content items. Use 'content' to print all content, or - * print a subset such as 'content.field_example'. - * - Field variables: For each field attached to the user a corresponding - * variable is defined; e.g., account.field_example has a variable - * 'field_example' defined. When needing to access a field's raw values, - * developers/themers are strongly encouraged to use these variables. - * Otherwise they will have to explicitly specify the desired field language, - * e.g. account.field_example.en, thus overriding any language negotiation - * rule that was previously applied. + * print a subset such as 'content.field_example'. Fields attached to a user + * such as 'user_picture' are available as 'content.user_picture'. * - attributes: HTML attributes for the container element. * - user: A Drupal User entity. *