Completed
Push — master ( 62c099...cf3855 )
by Andrii
05:38
created

MainMenu::items()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 17
ccs 0
cts 17
cp 0
rs 9.4285
cc 1
eloc 11
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * Hisite core package
5
 *
6
 * @link      https://github.com/hiqdev/hisite-core
7
 * @package   hisite-core
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\assetpackagist;
13
14
use Yii;
15
16
class MainMenu extends \hiqdev\menumanager\Menu
17
{
18
    protected $_addTo = 'main';
19
20
    public function items()
21
    {
22
        return [
23
            'about' => [
24
                'label' => Yii::t('hisite', 'About'),
25
                'url' => ['/site/about'],
26
            ],
27
            'contact' => [
28
                'label' => Yii::t('hisite', 'Contact'),
29
                'url' => ['/site/contact'],
30
            ],
31
            'github' => [
32
                'label' => 'GitHub',
33
                'url' => 'https://github.com/hiqdev/asset-packagist',
34
            ],
35
        ];
36
    }
37
}
38