1<?php
2
3namespace dokuwiki\Menu\Item;
4
5/**
6 * Class PrintPage
7 */
8class PrintPage extends AbstractItem
9{
10
11    /** @inheritdoc */
12    public function __construct()
13    {
14        parent::__construct();
15
16        if (!in_array('print', explode(',', tpl_getConf('pageIcons')))) {
17            throw new \RuntimeException("print is not available");
18        }
19
20        unset($this->params['do']);
21
22        $this->label = tpl_getLang('print');
23        $this->svg   = tpl_incdir() . 'images/menu/printer.svg';
24        $this->id    = '#';
25    }
26}
27