Created
January 7, 2015 17:42
-
-
Save mhazy/d1feadace8dcb9a5e3b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toolbar_test_toolbar() { | |
$items = []; | |
$items['scribe_posts'] = array( | |
'#type' => 'toolbar_item', | |
'tab' => array( | |
'#type' => 'link', | |
'#title' => t('Posts'), | |
'#url' => Url::fromUri('http://www.google.com'), | |
'#attributes' => array( | |
'class' => array('toolbar-icon', 'toolbar-icon-system-admin-content'), | |
), | |
), | |
); | |
return $items; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment