1<?php
2
3namespace dokuwiki\plugin\userpage;
4
5use dokuwiki\Menu\Item\AbstractItem;
6
7/** @inheritdoc */
8class MenuItem extends AbstractItem
9{
10    protected $type = 'show';
11
12    /** @inheritdoc */
13    public function __construct()
14    {
15        parent::__construct();
16
17        $actionComponent = plugin_load('action', 'userpage');
18        $linkData = $actionComponent->getLinkData();
19
20        $this->id = $linkData['goto'];
21        $this->label = $linkData['text'];
22        $this->svg = __DIR__ . '/icon.svg';
23    }
24}
25