1 | <?php |
||
2 | /** |
||
3 | * Units plugin for Craft CMS |
||
4 | * |
||
5 | * A plugin for handling physical quantities and the units of measure in which they're represented. |
||
6 | * |
||
7 | * @link https://nystudio107.com/ |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
8 | * @copyright Copyright (c) nystudio107 |
||
0 ignored issues
–
show
|
|||
9 | */ |
||
0 ignored issues
–
show
|
|||
10 | |||
11 | namespace nystudio107\units\assetbundles\units; |
||
12 | |||
13 | use craft\web\AssetBundle; |
||
14 | use craft\web\assets\cp\CpAsset; |
||
15 | |||
16 | /** |
||
0 ignored issues
–
show
|
|||
17 | * @author nystudio107 |
||
0 ignored issues
–
show
Content of the @author tag must be in the form "Display Name <[email protected]>"
![]() |
|||
18 | * @package Units |
||
0 ignored issues
–
show
|
|||
19 | * @since 1.0.0 |
||
0 ignored issues
–
show
|
|||
20 | */ |
||
0 ignored issues
–
show
|
|||
21 | class UnitsAsset extends AssetBundle |
||
22 | { |
||
23 | // Public Methods |
||
24 | // ========================================================================= |
||
25 | |||
26 | /** |
||
0 ignored issues
–
show
|
|||
27 | * @inheritdoc |
||
28 | */ |
||
0 ignored issues
–
show
|
|||
29 | public function init(): void |
||
30 | { |
||
31 | $this->sourcePath = "@nystudio107/units/assetbundles/units/dist"; |
||
32 | |||
33 | $this->depends = [ |
||
34 | CpAsset::class, |
||
35 | ]; |
||
36 | |||
37 | $this->js = [ |
||
38 | 'js/Units.js', |
||
39 | ]; |
||
40 | |||
41 | $this->css = [ |
||
42 | 'css/Units.css', |
||
43 | ]; |
||
44 | |||
45 | parent::init(); |
||
46 | } |
||
47 | } |
||
48 |