‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Utility\CanonicalizationUtility Class Reference

Static Public Member Functions

static getParamsToExcludeForCanonicalizedUrl (int $pageId, array $additionalCanonicalizedUrlParameters=[])
 

Detailed Description

Definition at line 25 of file CanonicalizationUtility.php.

Member Function Documentation

◆ getParamsToExcludeForCanonicalizedUrl()

static TYPO3\CMS\Frontend\Utility\CanonicalizationUtility::getParamsToExcludeForCanonicalizedUrl ( int  $pageId,
array  $additionalCanonicalizedUrlParameters = [] 
)
static

Get all params that are not needed to determine a canonicalized URL

The format of the additionalCanonicalizedUrlParameters is: $parameters = [ 'foo', 'bar', 'foo[bar]' ]

Parameters
int$pageId‪Id of the page you want to get the excluded params
array$additionalCanonicalizedUrlParameters‪Which GET-params should stay besides the params used for cHash calculation

Definition at line 40 of file CanonicalizationUtility.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\HttpUtility\buildQueryString().

Referenced by TYPO3\CMS\Seo\Canonical\CanonicalGenerator\checkDefaultCanonical(), and TYPO3\CMS\Frontend\DataProcessing\LanguageMenuProcessor\prepareConfiguration().