1<?php 2 3namespace dokuwiki\Menu\Item; 4 5use dokuwiki\File\StaticImage; 6 7/** 8 * Class ImgBackto 9 * 10 * Links back to the originating page from a detail image view 11 */ 12class ImgBackto extends AbstractItem 13{ 14 /** @inheritdoc */ 15 public function __construct() 16 { 17 global $ID; 18 parent::__construct(); 19 20 $this->svg = StaticImage::path('menu/12-back_arrow-left.svg'); 21 $this->type = 'img_backto'; 22 $this->params = []; 23 $this->accesskey = 'b'; 24 $this->replacement = $ID; 25 } 26} 27