CanonicalizationUtility

Table of Contents

Methods

getParamsToExcludeForCanonicalizedUrl()  : array<string|int, mixed>
Get all params that are not needed to determine a canonicalized URL

Methods

getParamsToExcludeForCanonicalizedUrl()

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

public static getParamsToExcludeForCanonicalizedUrl(int $pageId[, array<string|int, mixed> $additionalCanonicalizedUrlParameters = [] ]) : array<string|int, mixed>

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

Parameters
$pageId : int

Id of the page you want to get the excluded params

$additionalCanonicalizedUrlParameters : array<string|int, mixed> = []

Which GET-params should stay besides the params used for cHash calculation

Return values
array<string|int, mixed>

        
On this page

Search results