Cms\Helpers\Cms\HasSites


Public Methods

public siteUrl()

public siteUrl($page, $site, $parameters = []): void

siteUrl returns a URL for a CMS page, this is similar to pageUrl except supports a different site context.

Protected Methods

protected getPatternFromPage()

protected getPatternFromPage($page, $site): string 

protected getUrlFromPattern()

protected getUrlFromPattern($urlPattern, $page, $site, $parameters): string 

protected withPreservedQueryString()

protected withPreservedQueryString($url, $page, $site): string 

withPreservedQueryString makes sure to add any existing query string to the redirect url.