forked from alserom/octobercms_flashmessage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.php
42 lines (38 loc) · 1.38 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
<?php namespace Romanov\Flashmessage;
use System\Classes\PluginBase;
use Backend;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'romanov.flashmessage::lang.plugin.name',
'description' => 'romanov.flashmessage::lang.plugin.description',
'author' => 'Alexander Romanov',
'icon' => 'icon-bullhorn',
'homepage' => 'https://github.com/romanov-acc/octobercms_flashmessage'
];
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'romanov.flashmessage::lang.plugin.name',
'description' => 'romanov.flashmessage::lang.plugin.description',
'icon' => 'icon-bullhorn',
'url' => Backend::url('romanov/flashmessage/settings'),
'order' => 501,
'category' => 'system::lang.system.categories.cms',
'keywords' => 'flash message',
'permissions' => ['romanov.flashmessage.editconfigurations']
]
];
}
public function registerComponents()
{
return [
'Romanov\Flashmessage\Components\FlashMessage' => 'flashmessage',
'Romanov\Flashmessage\Components\FormError' => 'formerrormessages'
];
}
}