-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathPlugin.php
36 lines (31 loc) · 805 Bytes
/
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
<?php
namespace Jacob\Logbook;
use Jacob\LogBook\FormWidgets\LogBook;
use Jacob\Logbook\ReportWidgets\LogBookModelChanges;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function pluginDetails(): array
{
return [
'name' => 'Logbook',
'description' => 'Creates a logbook based on changes in a model',
'author' => 'Jacob',
'icon' => 'icon-leaf'
];
}
public function registerFormWidgets(): array
{
return [
LogBook::class => 'jacob_logbook_log',
];
}
public function registerReportWidgets(): array
{
return [
LogBookModelChanges::class => [
'label' => 'Logbook of changes in a model'
],
];
}
}