You are here

function lingotek_toolbar in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8 lingotek.module \lingotek_toolbar()
  2. 8.2 lingotek.module \lingotek_toolbar()
  3. 4.0.x lingotek.module \lingotek_toolbar()
  4. 3.0.x lingotek.module \lingotek_toolbar()
  5. 3.1.x lingotek.module \lingotek_toolbar()
  6. 3.2.x lingotek.module \lingotek_toolbar()
  7. 3.3.x lingotek.module \lingotek_toolbar()
  8. 3.5.x lingotek.module \lingotek_toolbar()
  9. 3.6.x lingotek.module \lingotek_toolbar()
  10. 3.7.x lingotek.module \lingotek_toolbar()
  11. 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;
}