nystudio107 /
craft-instantanalytics
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Instant Analytics plugin for Craft CMS |
||
| 4 | * |
||
| 5 | * Instant Analytics brings full Google Analytics support to your Twig templates |
||
| 6 | * |
||
| 7 | * @link https://nystudio107.com |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 8 | * @copyright Copyright (c) 2017 nystudio107 |
||
|
0 ignored issues
–
show
|
|||
| 9 | */ |
||
|
0 ignored issues
–
show
|
|||
| 10 | |||
| 11 | namespace nystudio107\instantanalytics\assetbundles\instantanalytics; |
||
| 12 | |||
| 13 | use craft\web\AssetBundle; |
||
| 14 | use craft\web\assets\cp\CpAsset; |
||
| 15 | use craft\web\assets\vue\VueAsset; |
||
| 16 | |||
| 17 | class InstantAnalyticsAsset extends AssetBundle |
||
|
0 ignored issues
–
show
|
|||
| 18 | { |
||
| 19 | // Public Methods |
||
| 20 | // ========================================================================= |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Initializes the bundle. |
||
| 24 | */ |
||
|
0 ignored issues
–
show
|
|||
| 25 | public function init() |
||
| 26 | { |
||
| 27 | // define the path that your publishable resources live |
||
| 28 | $this->sourcePath = '@nystudio107/instantanalytics/web/assets/dist'; |
||
| 29 | |||
| 30 | // define the dependencies |
||
| 31 | $this->depends = [ |
||
| 32 | CpAsset::class, |
||
| 33 | VueAsset::class, |
||
| 34 | ]; |
||
| 35 | |||
| 36 | parent::init(); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |