| Total Complexity | 3 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | class FieldManipulatorAsset extends AssetBundle |
||
| 27 | { |
||
| 28 | // Public Methods |
||
| 29 | // ========================================================================= |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Initializes the bundle. |
||
| 33 | */ |
||
| 34 | public function init() |
||
| 35 | { |
||
| 36 | // define the path that your publishable resources live |
||
| 37 | $this->sourcePath = "@angellco/spoon/assetbundles/dist"; |
||
| 38 | |||
| 39 | // define the dependencies |
||
| 40 | $this->depends = [ |
||
| 41 | CpAsset::class, |
||
| 42 | MatrixAsset::class |
||
| 43 | ]; |
||
| 44 | |||
| 45 | // define the relative path to CSS/JS files that should be registered with the page |
||
| 46 | // when this asset bundle is registered |
||
| 47 | $this->js = [ |
||
| 48 | 'js/FieldManipulator.min.js', |
||
| 49 | ]; |
||
| 50 | |||
| 51 | $this->css = [ |
||
| 52 | 'css/main.min.css', |
||
| 53 | ]; |
||
| 54 | |||
| 55 | parent::init(); |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @inheritdoc |
||
| 60 | */ |
||
| 61 | public function registerAssetFiles($view) |
||
| 70 | ]); |
||
| 71 | |||
| 77 |