‪TYPO3CMS  ‪main
TYPO3\CMS\Seo\Canonical\CanonicalGenerator Class Reference

Public Member Functions

 __construct (private EventDispatcherInterface $eventDispatcher,)
 
 generate (array $params)
 

Protected Member Functions

 checkForCanonicalLink (ServerRequestInterface $request)
 
 checkContentFromPid (ServerRequestInterface $request)
 
 checkDefaultCanonical (ServerRequestInterface $request)
 
 isPageWithinSiteRoot (int $id)
 

Detailed Description

Class to add the canonical tag to the page

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

Definition at line 36 of file CanonicalGenerator.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Seo\Canonical\CanonicalGenerator::__construct ( private EventDispatcherInterface  $eventDispatcher)

Definition at line 38 of file CanonicalGenerator.php.

Member Function Documentation

◆ checkContentFromPid()

TYPO3\CMS\Seo\Canonical\CanonicalGenerator::checkContentFromPid ( ServerRequestInterface  $request)
protected

◆ checkDefaultCanonical()

TYPO3\CMS\Seo\Canonical\CanonicalGenerator::checkDefaultCanonical ( ServerRequestInterface  $request)
protected

◆ checkForCanonicalLink()

TYPO3\CMS\Seo\Canonical\CanonicalGenerator::checkForCanonicalLink ( ServerRequestInterface  $request)
protected

◆ generate()

◆ isPageWithinSiteRoot()

TYPO3\CMS\Seo\Canonical\CanonicalGenerator::isPageWithinSiteRoot ( int  $id)
protected