blob: 3a27331bd1441821238c597e419458e00203f731 (
plain)
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
37
|
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Widget;
/**
* Defines a new widget. You can create a new widget using the console command `./console generate:widget`.
* The generated widget will guide you through the creation of a widget.
*
* For an example, see {@link https://github.com/piwik/piwik/blob/master/plugins/ExamplePlugin/Widgets/MyExampleWidget.php}
*
* @api since Piwik 3.0.0
*/
class Widget
{
/**
* @param WidgetConfig $config
* @api
*/
public static function configure(WidgetConfig $config)
{
}
/**
* @return string
*/
public function render()
{
return '';
}
}
|