CanonicalGenerator

Read onlyYes

Class to add the canonical tag to the page

Internal

this class is not part of TYPO3's Core API.

Attributes
#[Autoconfigure]
$public: true

Table of Contents

Methods

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

Methods

__construct()

public __construct(EventDispatcherInterface $eventDispatcher) : mixed
Parameters
$eventDispatcher : EventDispatcherInterface

generate()

public generate(array<string|int, mixed> $params) : string
Parameters
$params : array<string|int, mixed>
Return values
string

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

Search results