SiteUrlResolver

final readonly class \TYPO3\CMS\Core\Routing\SiteUrlResolver

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

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}|null

resolvePageUidBySiteUrl()

Searches the page UID by the full URI

public resolvePageUidBySiteUrl(string $fullUri) : int|null

Parameters

$fullUri : string

Return values

int|null
On this page