CanonicalGenerator

class \TYPO3\CMS\Seo\Canonical\CanonicalGenerator

Class to add the canonical tag to the page

Table of Contents

Properties

$eventDispatcher  : EventDispatcherInterface
$pageRepository  : PageRepository
$typoScriptFrontendController  : TypoScriptFrontendController

Methods

__construct()  : mixed
generate()  : string
checkContentFromPid()  : string
checkDefaultCanonical()  : string
checkForCanonicalLink()  : string
getTypoScriptFrontendController()  : TypoScriptFrontendController
isPageWithinSiteRoot()  : bool

Properties

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

Methods

checkContentFromPid()

protected checkContentFromPid() : string

Return values

string

checkDefaultCanonical()

protected checkDefaultCanonical() : string

Return values

string
protected checkForCanonicalLink() : string

Return values

string

isPageWithinSiteRoot()

protected isPageWithinSiteRoot(int $id) : bool

Parameters

$id : int

Return values

bool
On this page