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

Public Member Functions

 __construct (TypoScriptFrontendController $typoScriptFrontendController=null, Dispatcher $signalSlotDispatcher=null)
 
string generate ()
 

Protected Member Functions

string checkForCanonicalLink ()
 
string checkContentFromPid ()
 
string checkDefaultCanonical ()
 
TypoScriptFrontendController getTypoScriptFrontendController ()
 

Protected Attributes

TypoScriptFrontendController $typoScriptFrontendController
 
PageRepository $pageRepository
 
Dispatcher $signalSlotDispatcher
 

Detailed Description

Class to add the canonical tag to the page

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

Definition at line 30 of file CanonicalGenerator.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkContentFromPid()

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

Definition at line 118 of file CanonicalGenerator.php.

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 104 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 161 of file CanonicalGenerator.php.

References $GLOBALS.

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

Member Data Documentation

◆ $pageRepository

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

Definition at line 38 of file CanonicalGenerator.php.

◆ $signalSlotDispatcher

Dispatcher TYPO3\CMS\Seo\Canonical\CanonicalGenerator::$signalSlotDispatcher
protected

◆ $typoScriptFrontendController

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