summaryrefslogtreecommitdiffstats
path: root/inc/Menu/Item/ImgBackto.php
blob: 2d8a2c9b382120d484a234c968d7957172a17830 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace dokuwiki\Menu\Item;

/**
 * Class ImgBackto
 *
 * Links back to the originating page from a detail image view
 */
class ImgBackto extends AbstractItem
{
    /** @inheritdoc */
    public function __construct()
    {
        global $ID;
        parent::__construct();

        $this->svg = DOKU_INC . 'lib/images/menu/12-back_arrow-left.svg';
        $this->type = 'img_backto';
        $this->params = [];
        $this->accesskey = 'b';
        $this->replacement = $ID;
    }
}