HrefLangGenerator

class \TYPO3\CMS\Seo\HrefLang\HrefLangGenerator

Class to add the hreflang tags to the page

Table of Contents

Properties

$cObj  : ContentObjectRenderer
The content object renderer
$languageMenuProcessor  : LanguageMenuProcessor

Methods

__construct()  : mixed
__invoke()  : void
getAbsoluteUrl()  : string
getTranslatedPageRecord()  : array
getTypoScriptFrontendController()  : TypoScriptFrontendController

Properties

Methods

getAbsoluteUrl()

protected getAbsoluteUrl(string $url, SiteLanguage $siteLanguage) : string

Parameters

$url : string
$siteLanguage : SiteLanguage

Return values

string

getTranslatedPageRecord()

protected getTranslatedPageRecord(int $pageId, int $languageId, SiteInterface $site) : array

Parameters

$pageId : int
$languageId : int
$site : SiteInterface

Return values

array
On this page