1<?php 2 3/* Copyright (c) 2017 Alexander Killing <killing@leifos.de> Extended GPL, see docs/LICENSE */ 4 5namespace ILIAS\UI\Component\Link; 6 7use ILIAS\UI\Component\Component; 8 9/** 10 * Link base interface. 11 */ 12interface Link extends Component 13{ 14 /** 15 * Get the action url of a link 16 * 17 * @return string 18 */ 19 public function getAction(); 20 21 /** 22 * Set if link should be opened in new viewport 23 * @param bool $open_in_new_viewport 24 * @return Link 25 */ 26 public function withOpenInNewViewport($open_in_new_viewport); 27 28 /** 29 * Get if the link should be opened in new viewport 30 * @return bool 31 */ 32 public function getOpenInNewViewport(); 33} 34