UrlService
Namespace
IO\Services
Type | Name | Description |
---|---|---|
|
||
|
||
|
Methods
public __construct($sessionStorage, $webstoreConfigurationService)
UrlService constructor.
Type |
Name |
Description |
|
||
|
public getCategoryURL($categoryId, $lang = null):UrlQuery
Get canonical url for a category
Type |
Name |
Description |
|
||
|
public getVariationURL($itemId, $variationId, $lang = null):UrlQuery
Get canonical url for a variation
Type |
Name |
Description |
|
||
|
||
|
public getCanonicalURL($lang = null, $ignoreCanonical = false):string
Get canonical url for current page
Type |
Name |
Description |
|
||
|
public isCanonical($lang = null):bool
Check if the current URL is canonical
Type |
Name |
Description |
|
public getLanguageURLs():array
Get equivalent canonical urls for each active language
public getHomepageURL():string
Deprecated!
since 4.3.0 Use IO\Extensions\Constants\ShopUrls::$home instead. |
Get language specific homepage url
public fromMemoryCache()
public resetMemoryCache($key = null)
Type |
Name |
Description |
|
Thank you for your feedback!