CpBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 21 1
1
<?php
2
/**
3
 * CP Cache QuickMenu plugin for Craft CMS 3.x
4
 *
5
 * Fewer clicks to get clearin'
6
 *
7
 * @link      https://vaersaagod.no
8
 * @copyright Copyright (c) 2018 Mats Mikkel Rummelhoff
9
 */
10
11
namespace mmikkel\cacheflag\assetbundles;
12
13
use craft\web\AssetBundle;
14
use craft\web\assets\cp\CpAsset;
15
16
class CpBundle extends AssetBundle
17
{
18
    public function init()
19
    {
20
        // define the path that your publishable resources live
21
        $this->sourcePath = '@mmikkel/cacheflag/resources';
22
23
        // define the dependencies
24
        $this->depends = [
25
            CpAsset::class,
26
        ];
27
28
        // define the relative path to CSS/JS files that should be registered with the page
29
        // when this asset bundle is registered
30
        $this->js = [
31
            'cacheflag.js',
32
        ];
33
34
        $this->css = [
35
            'cacheflag.css',
36
        ];
37
38
        parent::init();
39
    }
40
}
41