SiteUrlResolver
Read onlyYes
FinalYes
Utilizes the SiteMatcher to resolve a URL and return its UID.
Table of Contents
Methods
- __construct() : mixed
- resolvePageUidAndLanguageBySiteUrl() : array{uid: int, languageUid: int, languageName: string}|null
- Searches the page UID by the full URI and returns the page UID including its language.
- resolvePageUidBySiteUrl() : int|null
- Searches the page UID by the full URI
Methods
__construct()
public
__construct(SiteMatcher $siteMatcher) : mixed
Parameters
- $siteMatcher : SiteMatcher
resolvePageUidAndLanguageBySiteUrl()
Searches the page UID by the full URI and returns the page UID including its language.
public
resolvePageUidAndLanguageBySiteUrl(string $fullUri) : array{uid: int, languageUid: int, languageName: string}|null
Parameters
- $fullUri : string
Return values
array{uid: int, languageUid: int, languageName: string}|nullresolvePageUidBySiteUrl()
Searches the page UID by the full URI
public
resolvePageUidBySiteUrl(string $fullUri) : int|null
Parameters
- $fullUri : string