FieldMappingAsset::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 10
rs 10
1
<?php
2
/**
3
 * Socializer plugin for Craft CMS 3.x
4
 *
5
 * @link      https://enupal.com/
6
 * @copyright Copyright (c) 2019 Enupal LLC
7
 */
8
9
namespace enupal\socializer\web\assets\fieldmapping;
10
11
use craft\web\AssetBundle;
12
use craft\web\assets\cp\CpAsset;
13
14
class FieldMappingAsset extends AssetBundle
15
{
16
    public function init()
17
    {
18
        // define the path that your publishable resources live
19
        $this->sourcePath = '@enupal/socializer/web/assets/fieldmapping';
20
21
        $this->js = [
22
            'dist/js/fieldmapping.min.js'
23
        ];
24
25
        parent::init();
26
    }
27
}