* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team * */ // {{{ICINGA_LICENSE_HEADER}}} use Icinga\Web\Url; /** * Helper class for creating absolute links from relative strings * */ class Zend_View_Helper_Href extends Zend_View_Helper_Abstract { /** * Turn the relative link $link into absolute one * * @param $link */ public function href($link, array $params = array()) { return Url::fromPath($link, $params)->getAbsoluteUrl(); } } // @codingStandardsIgnoreEnd