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