diff --git a/core/modules/user/templates/user.html.twig b/core/modules/user/templates/user.html.twig index 45c4ea0ac6e181f7b0ce605773319d5cac394609..9075ab1bd0de49b62f2c16cad8f49f2bcee9e1a3 100644 --- a/core/modules/user/templates/user.html.twig +++ b/core/modules/user/templates/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/modules/user/tests/themes/user_test_theme/user.html.twig b/core/modules/user/tests/themes/user_test_theme/user.html.twig index 715a79e5613caa58b603ddc45dad16532e2bb00a..415b7a570f326a4db5d69bf08bf21e5efeff445d 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 9ee9c0a70dc5dec5a911d11f163fcfdf9952ec01..9a824effd35f59462e2bc14b740fde5f437f50a3 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. *