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