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/MenuUser.php')
-rwxr-xr-xcore/Menu/MenuUser.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/core/Menu/MenuUser.php b/core/Menu/MenuUser.php
index f492916794..b3d140e6ae 100755
--- a/core/Menu/MenuUser.php
+++ b/core/Menu/MenuUser.php
@@ -8,19 +8,16 @@
*/
namespace Piwik\Menu;
-use Piwik\Piwik;
-
/**
* Contains menu entries for the User menu (the menu at the very top of the page).
- * Plugins can subscribe to the {@hook Menu.User.addItems} event to add new pages to
- * the user menu.
+ * Plugins can implement the `configureUserMenu()` 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.User.addItems
- * public function addUserMenuItem()
+ *
+ * public function configureUserMenu(MenuUser $menu)
* {
- * MenuUser::getInstance()->add(
+ * $menu->add(
* 'MyPlugin_MyTranslatedMenuCategory',
* 'MyPlugin_MyTranslatedMenuName',
* array('module' => 'MyPlugin', 'action' => 'index'),