Completed
Push — master ( 20a6b1...b57415 )
by Klochok
15:20
created

BackupingDetailMenu::items()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
namespace hipanel\modules\hosting\menus;
4
5
use Yii;
6
7
class BackupingDetailMenu extends \hipanel\menus\AbstractDetailMenu
8
{
9
    public $model;
10
11
    public function items()
12
    {
13
        return [
14
            [
15
                'label' => Yii::t('hipanel:hosting', 'Update settings'),
16
                'icon' => 'fa-pencil',
17
                'url' => ['@backuping/update', 'id' => $this->model->id],
18
                'encode' => false,
19
                'visible' => Yii::$app->user->can('support'),
20
            ],
21
        ];
22
    }
23
}
24