forked from Flynsarmy/oc-dashboardcachewidget-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.php
More file actions
35 lines (31 loc) · 888 Bytes
/
Plugin.php
File metadata and controls
35 lines (31 loc) · 888 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
35
<?php namespace Flynsarmy\DashboardCacheWidget;
use System\Classes\PluginBase;
/**
* DashboardCacheWidget Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'Dashboard Cache Widget',
'description' => "A simple dashboard widget with a button to clear October's cache.",
'author' => 'Flynsarmy',
'icon' => 'icon-remove'
];
}
public function registerReportWidgets()
{
return [
'Flynsarmy\DashboardCacheWidget\ReportWidgets\ClearCache' => [
'label' => 'flynsarmy.dashboardcachewidget::lang.widgets.clearcache.label',
'context' => 'dashboard'
],
];
}
}