CanonicalGenerator
Class to add the canonical tag to the page
this class is not part of TYPO3's Core API.
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
$pageRepository
protected
PageRepository
$pageRepository
$typoScriptFrontendController
protected
TypoScriptFrontendController
$typoScriptFrontendController
Methods
__construct()
public
__construct([TypoScriptFrontendController|null $typoScriptFrontendController = null ][, EventDispatcherInterface|null $eventDispatcher = null ]) : mixed
Parameters
- $typoScriptFrontendController : TypoScriptFrontendController|null = null
- $eventDispatcher : EventDispatcherInterface|null = null
generate()
public
generate(array<string|int, mixed> $params) : string
Parameters
- $params : array<string|int, mixed>
Return values
stringcheckContentFromPid()
protected
checkContentFromPid() : string
Return values
stringcheckDefaultCanonical()
protected
checkDefaultCanonical() : string
Return values
stringcheckForCanonicalLink()
protected
checkForCanonicalLink() : string
Return values
stringgetTypoScriptFrontendController()
protected
getTypoScriptFrontendController() : TypoScriptFrontendController
Return values
TypoScriptFrontendControllerisPageWithinSiteRoot()
protected
isPageWithinSiteRoot(int $id) : bool
Parameters
- $id : int