forked from rainlab/mailchimp-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.php
53 lines (48 loc) · 1.4 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
53
<?php namespace RainLab\MailChimp;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'MailChimp',
'description' => 'Provides MailChimp integration services.',
'author' => 'Alexey Bobkov, Samuel Georges',
'icon' => 'icon-envelope',
'homepage' => 'https://github.com/rainlab/mailchimp-plugin'
];
}
public function registerComponents()
{
return [
'RainLab\MailChimp\Components\Signup' => 'mailSignup'
];
}
/**
* Registers administrator permissions for this plugin.
*
* @return array
*/
public function registerPermissions()
{
return [
'rainlab.mailchimp.configure' => [
'tab' => 'MailChimp',
'label' => 'Configure MailChimp API access.',
],
];
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'MailChimp',
'icon' => 'icon-envelope',
'description' => 'Configure MailChimp API access.',
'class' => 'RainLab\MailChimp\Models\Settings',
'order' => 600,
'permissions' => ['rainlab.mailchimp.configure']
]
];
}
}