Skip to content
Extraits de code Groupes Projets
Valider ac6cfd65 rédigé par mattab's avatar mattab
Parcourir les fichiers

Remove deprecated examples

parent 259fc6d7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -16,19 +16,6 @@ use Piwik\Piwik; ...@@ -16,19 +16,6 @@ use Piwik\Piwik;
* Plugins can implement the `configureAdminMenu()` method of the `Menu` plugin class to add, rename of remove * 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`. * items. If your plugin does not have a `Menu` class yet you can create one using `./console generate:menu`.
* *
* **Example**
*
* public function configureAdminMenu(MenuAdmin $menu)
* {
* $menu->add(
* 'MyPlugin_MyTranslatedAdminMenuCategory',
* 'MyPlugin_MyTranslatedAdminPageName',
* array('module' => 'MyPlugin', 'action' => 'index'),
* Piwik::isUserHasSomeAdminAccess(),
* $order = 2
* );
* }
*
* @method static \Piwik\Menu\MenuAdmin getInstance() * @method static \Piwik\Menu\MenuAdmin getInstance()
*/ */
class MenuAdmin extends MenuAbstract class MenuAdmin extends MenuAbstract
......
...@@ -15,19 +15,6 @@ use Piwik\Piwik; ...@@ -15,19 +15,6 @@ use Piwik\Piwik;
* Plugins can implement the `configureTopMenu()` method of the `Menu` plugin class to add, rename of remove * Plugins can implement the `configureTopMenu()` 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`. * items. If your plugin does not have a `Menu` class yet you can create one using `./console generate:menu`.
* *
* **Example**
*
* public function configureTopMenu(MenuTop $menu)
* {
* $menu->add(
* 'MyPlugin_MyTranslatedMenuCategory',
* 'MyPlugin_MyTranslatedMenuName',
* array('module' => 'MyPlugin', 'action' => 'index'),
* Piwik::isUserHasSomeAdminAccess(),
* $order = 2
* );
* }
*
* @method static \Piwik\Menu\MenuTop getInstance() * @method static \Piwik\Menu\MenuTop getInstance()
*/ */
class MenuTop extends MenuAbstract class MenuTop extends MenuAbstract
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter