Plugin::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
rs 9.4285
cc 1
eloc 8
nc 1
nop 0
1
<?php namespace VojtaSvoboda\UserBanned;
2
3
use Backend;
4
use Event;
5
use System\Classes\PluginBase;
6
7
class Plugin extends PluginBase
8
{
9
    public function boot()
10
    {
11
        Event::listen('backend.menu.extendItems', function ($manager) {
12
            $manager->addSideMenuItems('RainLab.User', 'user', [
13
                'banned' => [
14
                    'label' => 'vojtasvoboda.userbanned::lang.sidemenu.menu_label',
15
                    'url' => Backend::url('vojtasvoboda/userbanned/banned'),
16
                    'icon' => 'icon-ban',
17
                    'order' => 600,
18
                ],
19
            ]);
20
        });
21
    }
22
}
23