Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Contents/Reports/Base.php')
-rw-r--r--plugins/Contents/Reports/Base.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/Contents/Reports/Base.php b/plugins/Contents/Reports/Base.php
index f07baf973d..e323bebdbe 100644
--- a/plugins/Contents/Reports/Base.php
+++ b/plugins/Contents/Reports/Base.php
@@ -8,18 +8,27 @@
*/
namespace Piwik\Plugins\Contents\Reports;
-use Piwik\Columns\Dimension;
use Piwik\Common;
use Piwik\Piwik;
use Piwik\Plugin\Report;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\Contents\Dimensions;
+use Piwik\Report\ReportWidgetFactory;
+use Piwik\Widget\WidgetsList;
abstract class Base extends Report
{
protected function init()
{
- $this->category = 'General_Actions';
+ $this->categoryId = 'General_Actions';
+ $this->subcategoryId = 'Contents_Contents';
+ }
+
+ public function configureWidgets(WidgetsList $widgetsList, ReportWidgetFactory $factory)
+ {
+ $widget = $factory->createWidget();
+
+ $widgetsList->addToContainerWidget('Contents', $widget);
}
/**