forked from humhub-contrib/devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvents.php
More file actions
26 lines (23 loc) · 683 Bytes
/
Events.php
File metadata and controls
26 lines (23 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2017 HumHub GmbH & Co. KG
* @license https://www.humhub.com/licences
*/
namespace humhub\modules\devtools;
use Yii;
use yii\helpers\Url;
class Events
{
public static function onTopMenuInit($event)
{
$event->sender->addItem([
'label' => Yii::t('DevtoolsModule.base', 'Devtools'),
'id' => 'devtools',
'icon' => '<i class="fa fa-code"></i>',
'url' => Url::toRoute('/devtools/index'),
'sortOrder' => 100,
'isActive' => (Yii::$app->controller->module && Yii::$app->controller->module->id == 'devtools'),
]);
}
}