1<?php 2 3namespace dokuwiki\plugin\recommend; 4 5 6/** 7 * Menu Item 8 */ 9class MenuItem extends \dokuwiki\Menu\Item\AbstractItem 10{ 11 /** @inheritdoc */ 12 public function getType() 13 { 14 return 'recommend'; 15 } 16 17 /** @inheritdoc */ 18 public function getSvg() 19 { 20 return __DIR__ . '/admin.svg'; 21 } 22 23 /** 24 * Get label from plugin language file 25 * 26 * @return string 27 */ 28 public function getLabel() { 29 $hlp = plugin_load('action', 'recommend'); 30 return $hlp->getLang('menu_recommend'); 31 } 32} 33