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

Public Member Functions

 __construct (TypoScriptFrontendController $typoScriptFrontendController=null, EventDispatcherInterface $eventDispatcher=null)
 
 generate ()
 

Protected Member Functions

string checkForCanonicalLink ()
 
string checkContentFromPid ()
 
string checkDefaultCanonical ()
 
 isPageWithinSiteRoot (int $id)
 
TypoScriptFrontendController getTypoScriptFrontendController ()
 

Protected Attributes

TypoScriptFrontendController $typoScriptFrontendController
 
PageRepository $pageRepository
 
EventDispatcherInterface $eventDispatcher
 

Detailed Description

Class to add the canonical tag to the page

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

Definition at line 33 of file CanonicalGenerator.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Seo\Canonical\CanonicalGenerator::__construct ( TypoScriptFrontendController  $typoScriptFrontendController = null,
EventDispatcherInterface  $eventDispatcher = null 
)

Member Function Documentation

◆ checkContentFromPid()

string TYPO3\CMS\Seo\Canonical\CanonicalGenerator::checkContentFromPid ( )
protected
Returns
‪string

Definition at line 104 of file CanonicalGenerator.php.

References if.

Referenced by TYPO3\CMS\Seo\Canonical\CanonicalGenerator\generate().

◆ checkDefaultCanonical()

string TYPO3\CMS\Seo\Canonical\CanonicalGenerator::checkDefaultCanonical ( )
protected

◆ checkForCanonicalLink()

string TYPO3\CMS\Seo\Canonical\CanonicalGenerator::checkForCanonicalLink ( )
protected
Returns
‪string

Definition at line 90 of file CanonicalGenerator.php.

Referenced by TYPO3\CMS\Seo\Canonical\CanonicalGenerator\generate().

◆ generate()

◆ getTypoScriptFrontendController()

TypoScriptFrontendController TYPO3\CMS\Seo\Canonical\CanonicalGenerator::getTypoScriptFrontendController ( )
protected
Returns
‪TypoScriptFrontendController

Definition at line 172 of file CanonicalGenerator.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Seo\Canonical\CanonicalGenerator\__construct().

◆ isPageWithinSiteRoot()

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

Member Data Documentation

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Seo\Canonical\CanonicalGenerator::$eventDispatcher
protected

◆ $pageRepository

PageRepository TYPO3\CMS\Seo\Canonical\CanonicalGenerator::$pageRepository
protected

Definition at line 41 of file CanonicalGenerator.php.

◆ $typoScriptFrontendController

TypoScriptFrontendController TYPO3\CMS\Seo\Canonical\CanonicalGenerator::$typoScriptFrontendController
protected