function _toolbar_get_subtrees_hash
_toolbar_get_subtrees_hash()
Returns the hash of the per-user rendered toolbar subtrees.
Return value
string The hash of the admin_menu subtrees.
File
- core/modules/toolbar/toolbar.module, line 354
- Administration toolbar for quick access to top level administration items.
Code
function _toolbar_get_subtrees_hash() { list($subtrees, $cacheability) = toolbar_get_rendered_subtrees(); $hash = Crypt::hashBase64(serialize($subtrees)); return [$hash, $cacheability]; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!toolbar!toolbar.module/function/_toolbar_get_subtrees_hash/8.1.x