function _toolbar_get_subtrees_hash

Same name in other branches
  1. 9 core/modules/toolbar/toolbar.module \_toolbar_get_subtrees_hash()
  2. 10 core/modules/toolbar/toolbar.module \_toolbar_get_subtrees_hash()
  3. 11.x core/modules/toolbar/toolbar.module \_toolbar_get_subtrees_hash()

Returns the hash of the per-user rendered toolbar subtrees.

Return value

string The hash of the admin_menu subtrees.

1 call to _toolbar_get_subtrees_hash()
toolbar_toolbar in core/modules/toolbar/toolbar.module
Implements hook_toolbar().

File

core/modules/toolbar/toolbar.module, line 323

Code

function _toolbar_get_subtrees_hash() {
    list($subtrees, $cacheability) = toolbar_get_rendered_subtrees();
    $hash = Crypt::hashBase64(serialize($subtrees));
    return [
        $hash,
        $cacheability,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.