You are here

function gin_toolbar_toolbar_alter in Gin Toolbar 8

Implements hook_toolbar_alter().

File

./gin_toolbar.module, line 172
gin_toolbar.module

Code

function gin_toolbar_toolbar_alter(&$items) {

  // Move the User tab to the end; devel uses 999 so up it.
  $items['user']['#weight'] = 1000;
  $items['administration']['tray']['toolbar_administration']['#pre_render'] = [
    [
      GinToolbar::class,
      'preRenderTray',
    ],
  ];
}