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 'core/Menu/MenuReporting.php')
-rw-r--r--core/Menu/MenuReporting.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/Menu/MenuReporting.php b/core/Menu/MenuReporting.php
index bc791aa6a8..2c5ae297da 100644
--- a/core/Menu/MenuReporting.php
+++ b/core/Menu/MenuReporting.php
@@ -11,15 +11,14 @@ use Piwik\Piwik;
/**
* Contains menu entries for the Reporting menu (the menu displayed under the Piwik logo).
- * Plugins can subscribe to the {@hook Menu.Reporting.addItems} event to add new pages to
- * the reporting menu.
+ * Plugins can implement the `configureReportingMenu()` method of the `Menu` plugin class to add, rename of remove
+ * items. If your plugin does not have a `Menu` class yet you can create one using `./console generate:menu`.
*
* **Example**
*
- * // add a new page in an observer to Menu.Admin.addItems
- * public function addReportingMenuItem()
+ * public function configureReportingMenu(MenuReporting $menu)
* {
- * MenuReporting::getInstance()->add(
+ * $menu->add(
* 'MyPlugin_MyTranslatedMenuCategory',
* 'MyPlugin_MyTranslatedMenuName',
* array('module' => 'MyPlugin', 'action' => 'index'),