-
Notifications
You must be signed in to change notification settings - Fork 5
/
Plugin.php
41 lines (37 loc) · 1.3 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
<?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'
]
];
}
public function registerComponents()
{
return [
'Romanov\Flashmessage\Components\FlashMessage' => 'flashmessage',
'Romanov\Flashmessage\Components\FormError' => 'formerrormessages'
];
}
}