shortcut_toolbar()
Implements hook_toolbar().
File
core/modules/shortcut/shortcut.module, line 372 Allows users to manage customizable lists of shortcut links.
Code
function shortcut_toolbar() {
$user = \Drupal::currentUser();
$items = [];
$items['shortcuts'] = [
'#cache' => [
'contexts' => [
// Cacheable per user, because each user can have their own shortcut
// set, even if they cannot create or select a shortcut set, because
// an administrato