CanonicalGenerator
Read onlyYes
Class to add the canonical tag to the page
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
stringcheckContentFromPid()
protected
checkContentFromPid(ServerRequestInterface $request) : string
Parameters
- $request : ServerRequestInterface
Return values
stringcheckDefaultCanonical()
protected
checkDefaultCanonical(ServerRequestInterface $request) : string
Parameters
- $request : ServerRequestInterface
Return values
stringcheckForCanonicalLink()
protected
checkForCanonicalLink(ServerRequestInterface $request) : string
Parameters
- $request : ServerRequestInterface
Return values
stringisPageWithinSiteRoot()
protected
isPageWithinSiteRoot(int $id) : bool
Parameters
- $id : int