Frontend\Core\Engine\FrontendIcalEvent::setUrl PHP Method

setUrl() public method

Set the url
public setUrl ( string $url )
$url string The url to associate the item with.
    public function setUrl($url)
    {
        // redefine var
        $url = (string) $url;
        // if link doesn't start with http, we prepend the URL of the site
        if (mb_substr($url, 0, 7) != 'http://') {
            $url = SITE_URL . $url;
        }
        $url = FrontendModel::addURLParameters($url, $this->utm);
        $url = htmlspecialchars_decode($url);
        // call parent
        parent::setURL($url);
    }