function lingotek_toolbar in Lingotek Translation 3.3.x
Same name and namespace in other branches
- 8 lingotek.module \lingotek_toolbar()
- 8.2 lingotek.module \lingotek_toolbar()
- 4.0.x lingotek.module \lingotek_toolbar()
- 3.0.x lingotek.module \lingotek_toolbar()
- 3.1.x lingotek.module \lingotek_toolbar()
- 3.2.x lingotek.module \lingotek_toolbar()
- 3.4.x lingotek.module \lingotek_toolbar()
- 3.5.x lingotek.module \lingotek_toolbar()
- 3.6.x lingotek.module \lingotek_toolbar()
- 3.7.x lingotek.module \lingotek_toolbar()
- 3.8.x lingotek.module \lingotek_toolbar()
Implements hook_toolbar().
File
- ./
lingotek.module, line 27 - Implements Drupal-related hooks for the Lingotek Translation module.
Code
function lingotek_toolbar() {
$items = [];
$items['translation'] = [
'#type' => 'toolbar_item',
'#attached' => [
'library' => [
'lingotek/lingotek.icons',
],
],
];
return $items;
}