From 0ff3dada280f172289a45793e50494a4a0730264 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Tue, 1 Feb 2022 00:23:20 +0000
Subject: [PATCH] Issue #3258642 by ilgnerfagundes, asishsajeev, Chi: Fix
 documentation for _toolbar_get_subtrees_hash()

---
 core/modules/toolbar/toolbar.module | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module
index a1def5da6892..963c708c9f9e 100644
--- a/core/modules/toolbar/toolbar.module
+++ b/core/modules/toolbar/toolbar.module
@@ -280,10 +280,10 @@ function toolbar_get_rendered_subtrees() {
 }
 
 /**
- * Returns the hash of the per-user rendered toolbar subtrees.
+ * Returns the hash of the user-rendered toolbar subtrees and cacheability.
  *
- * @return string
- *   The hash of the admin_menu subtrees.
+ * @return array
+ *   An array with the hash of the toolbar subtrees and cacheability.
  */
 function _toolbar_get_subtrees_hash() {
   [$subtrees, $cacheability] = toolbar_get_rendered_subtrees();
-- 
GitLab