-
Notifications
You must be signed in to change notification settings - Fork 1
/
Plugin.php
42 lines (37 loc) · 1.19 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 WebVPF\SimpleDocs;
use Backend;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function pluginDetails(): array
{
return [
'name' => 'SimpleDocs',
'description' => 'webvpf.simpledocs::lang.plugin.desc',
'author' => 'WebVPF',
'icon' => 'icon-file-text-o',
'homepage' => 'https://github.com/WebVPF/wn-simpledocs-plugin',
];
}
public function registerComponents(): array
{
return [
\WebVPF\SimpleDocs\Components\Item::class => 'DocsItem',
\WebVPF\SimpleDocs\Components\Menu::class => 'DocsMenu',
];
}
public function registerNavigation(): array
{
return [
'simpledocs' => [
'label' => 'webvpf.simpledocs::lang.plugin.name',
'url' => Backend::url('webvpf/simpledocs/items'),
'icon' => 'icon-book',
'iconSvg' => 'plugins/webvpf/simpledocs/assets/img/docs-icon.svg',
'permissions' => ['webvpf.simpledocs.*'],
'order' => 900,
],
];
}
}