SaasLinkCpFieldSettingsAsset::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 7
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 15
rs 10
1
<?php
2
/**
3
 * SaaS Link plugin for Craft CMS 3.x
4
 *
5
 * Craft Field Types for linking Entries to Harvest, Trello, and Capsule.
6
 *
7
 * @link      https://workingconcept.com
8
 * @copyright Copyright (c) 2018 Working Concept Inc.
9
 */
10
11
namespace workingconcept\saaslink\assetbundles\saaslink;
12
13
use craft\web\AssetBundle;
14
use craft\web\assets\cp\CpAsset;
15
16
class SaasLinkCpFieldSettingsAsset extends AssetBundle
17
{
18
    // Public Methods
19
    // =========================================================================
20
21
    /**
22
     * @inheritdoc
23
     */
24
    public function init()
25
    {
26
        $this->sourcePath = "@workingconcept/saaslink/assetbundles/saaslink/dist";
27
28
        $this->depends = [
29
            CpAsset::class,
30
        ];
31
32
        $this->js = [
33
            'js/saas-link-field-settings.js',
34
        ];
35
36
        $this->css = [];
37
38
        parent::init();
39
    }
40
}
41