-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPlugin.php
More file actions
36 lines (32 loc) · 891 Bytes
/
Plugin.php
File metadata and controls
36 lines (32 loc) · 891 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
36
<?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',
],
];
}
}