summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-07-07 14:11:22 (GMT)
committerAlex Pott2015-07-07 14:11:22 (GMT)
commitd416fabdd6fe7583699b2cb109eea4b1c09744b9 (patch)
tree4da20920cfec7fa01a9881c1888c7287a74643ca
parent9ae518ce8d7cb9a84c4ae0c57272a2470bb3b231 (diff)
Issue #2428861 by tbradbury, Nitesh Sethia, neetu morwani, deepakaryan1988, Sagar Ramgade, yogen.prasad, Daniel_Rose, Cottser, jhodgdon, Sutharsan, leeotzu: user.html.twig documentation refers to a nonexistent 'account' variable
-rw-r--r--core/modules/user/templates/user.html.twig10
-rw-r--r--core/modules/user/tests/themes/user_test_theme/user.html.twig10
-rw-r--r--core/themes/classy/templates/user/user.html.twig10
3 files changed, 6 insertions, 24 deletions
diff --git a/core/modules/user/templates/user.html.twig b/core/modules/user/templates/user.html.twig
index 45c4ea0..9075ab1 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 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.
*