CanonicalGenerator

readonly class \TYPO3\CMS\Seo\Canonical\CanonicalGenerator

Class to add the canonical tag to the page

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Methods

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

Methods

checkContentFromPid()

protected checkContentFromPid(ServerRequestInterface $request) : string

Parameters

$request : ServerRequestInterface

Return values

string

checkDefaultCanonical()

protected checkDefaultCanonical(ServerRequestInterface $request) : string

Parameters

$request : ServerRequestInterface

Return values

string
protected checkForCanonicalLink(ServerRequestInterface $request) : string

Parameters

$request : ServerRequestInterface

Return values

string

isPageWithinSiteRoot()

protected isPageWithinSiteRoot(int $id) : bool

Parameters

$id : int

Return values

bool
On this page