toolbar_toolbar()
Implements hook_toolbar().
File
core/modules/toolbar/toolbar.module, line 137 Administration toolbar for quick access to top level administration items.
Code
function toolbar_toolbar() {
// The 'Home' tab is a simple link, with no corresponding tray.
$items['home'] = array(
'#type' => 'toolbar_item',
'tab' => array(
'#type' => 'link',
'#title' => t('Back to site'),
'#url' => Url::fromRoute('<front>'),
'#attributes' =&g