1<?php
2
3namespace dokuwiki\plugin\wordimport;
4
5use dokuwiki\Menu\Item\AbstractItem;
6
7/**
8 * Class MenuItem
9 *
10 * Implements the PDF export button for DokuWiki's menu system
11 *
12 * @package dokuwiki\plugin\dw2pdf
13 */
14class MenuItem extends AbstractItem
15{
16    /** @var string do action for this plugin */
17    protected $type = 'wordimport';
18
19    /** @var string icon file */
20    protected $svg = __DIR__ . '/wordimport.svg';
21
22    /**
23     * Get label from plugin language file
24     *
25     * @return string
26     */
27    public function getLabel()
28    {
29        $hlp = plugin_load('action', 'wordimport_menu');
30        return $hlp->getLang('page_button');
31    }
32}
33