_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];
}
doc_Drupal
2016-10-29 09:57:19
Comments
Leave a Comment

Please login to continue.