-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathCpAssetBundle.php
45 lines (37 loc) · 977 Bytes
/
CpAssetBundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Elasticsearch plugin for Craft CMS.
*
* @link https://www.lahautesociete.com
* @copyright Copyright (c) 2018 La Haute Société
*/
namespace lhs\elasticsearch\resources;
use craft\web\AssetBundle;
use craft\web\assets\cp\CpAsset;
/**
* AssetBundle used in the Control Panel
*/
class CpAssetBundle extends AssetBundle
{
/**
* Initializes the bundle.
*/
public function init()
{
// define the path that your publishable resources live
$this->sourcePath = '@lhs/elasticsearch/resources/cp';
// define the dependencies
$this->depends = [
CpAsset::class,
];
// define the relative path to CSS/JS files that should be registered
// with the page when this asset bundle is registered
$this->js = [
'js/utilities/reindex.js',
];
$this->css = [
'css/elastic-branding.css',
];
parent::init();
}
}