-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlugin.php
More file actions
34 lines (31 loc) · 854 Bytes
/
Plugin.php
File metadata and controls
34 lines (31 loc) · 854 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
31
32
33
34
<?php namespace OnePilot\LogsWidget;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
/**
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'Logs Widget',
'description' => 'Show an overview of site errors direct on your OctoberCMS dashboard',
'author' => '1Pilot.io',
'icon' => 'icon-file-text-o',
'homepage' => 'https://1pilot.io',
];
}
/**
* @return array
*/
public function registerReportWidgets()
{
return [
ReportWidgets\ErrorsOverview::class => [
'label' => 'Errors Logs Overview',
'context' => 'dashboard',
'permissions' => ['system.access_logs'],
],
];
}
}