Plugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 13 1
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