-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPlugin.php
executable file
·52 lines (47 loc) · 1.31 KB
/
Plugin.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
46
47
48
49
50
51
52
<?php namespace AlekseyP\GoogleTagManager;
use System\Classes\PluginBase;
/**
* Class Plugin
* @package AlekseyP\GoogleTagManager
*/
class Plugin extends PluginBase
{
/**
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'alekseyp.googletagmanager::lang.plugin.name',
'description' => 'alekseyp.googletagmanager::lang.plugin.description',
'author' => 'AlekseyP',
'icon' => 'oc-icon-google',
'homepage' => 'https://github.com/alekseyp/octobercms-googletagmanager'
];
}
/**
* @return array
*/
public function registerComponents()
{
return [
'AlekseyP\GoogleTagManager\Components\TagManager' => 'gtmCode'
];
}
/**
* @return array
*/
public function registerSettings()
{
return [
'config' => [
'label' => 'alekseyp.googletagmanager::lang.plugin.name',
'icon' => 'oc-icon-google',
'description' => 'alekseyp.googletagmanager::lang.settings.container_id.description',
'class' => 'AlekseyP\GoogleTagManager\Models\Settings',
'permissions' => ['aleksey.googletagmanager.settings'],
'order' => 600
]
];
}
}