-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathPlugin.php
27 lines (24 loc) · 812 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
<?php namespace Romanov\ClearCacheWidget;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'romanov.clearcachewidget::lang.plugin.name',
'description' => 'romanov.clearcachewidget::lang.plugin.description',
'author' => 'Alexander Romanov',
'icon' => 'icon-trash',
'homepage' => 'https://github.com/romanov-acc/octobercms_clearcachewidget'
];
}
public function registerReportWidgets()
{
return [
'Romanov\ClearCacheWidget\ReportWidgets\ClearCache' => [
'label' => 'romanov.clearcachewidget::lang.plugin.label',
'context' => 'dashboard'
]
];
}
}