diff options
Diffstat (limited to 'core/Menu/MenuAdmin.php')
-rw-r--r-- | core/Menu/MenuAdmin.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/Menu/MenuAdmin.php b/core/Menu/MenuAdmin.php index 2d48cbeeae..792905cf9b 100644 --- a/core/Menu/MenuAdmin.php +++ b/core/Menu/MenuAdmin.php @@ -11,15 +11,15 @@ namespace Piwik\Menu; use Piwik\Piwik; /** - * Contains menu entries for the Admin menu. Plugins can subscribe to the - * {@hook Menu.Admin.addItems} event to add new pages to the admin menu. + * Contains menu entries for the Admin menu. + * Plugins can implement the `configureAdminMenu()` 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 addAdminMenuItem() + * + * public function configureAdminMenu(MenuAdmin $menu) * { - * MenuAdmin::getInstance()->add( + * $menu->add( * 'MyPlugin_MyTranslatedAdminMenuCategory', * 'MyPlugin_MyTranslatedAdminPageName', * array('module' => 'MyPlugin', 'action' => 'index'), |