-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlugin.php
More file actions
30 lines (27 loc) · 843 Bytes
/
Copy pathPlugin.php
File metadata and controls
30 lines (27 loc) · 843 Bytes
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
<?php namespace Mavitm\Staff;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function registerComponents()
{
return [
"Mavitm\Staff\Components\ViewList" => "viewlist",
"Mavitm\Staff\Components\Detail" => "staffDetail",
"Mavitm\Staff\Components\StaffList" => "staffList",
];
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'mavitm.staff::lang.plugin.name',
'description' => '',
'category' => 'Mavitm',
'icon' => 'icon-cog',
'class' => 'Mavitm\Staff\Models\Settings',
'order' => 500,
'permissions' => ['manage_staff']
]
];
}
}