<?php

namespace dokuwiki\plugin\recommend;

use dokuwiki\Menu\Item\AbstractItem;

/**
 * Menu Item
 */
class MenuItem extends AbstractItem
{
    /** @inheritdoc */
    public function getType()
    {
        return 'recommend';
    }

    /** @inheritdoc */
    public function getSvg()
    {
        return __DIR__ . '/admin.svg';
    }

    /**
     * Get label from plugin language file
     *
     * @return string
     */
    public function getLabel()
    {
        $hlp = plugin_load('action', 'recommend');
        return $hlp->getLang('menu_recommend');
    }
}
