RedirectIntegrityCheckEvent

FinalYes

This event is fired in \TYPO3\CMS\Redirects\Service\IntegrityService->checkRedirectTargetIntegrity() for each redirect record.

It can be used to perform custom validation on redirect targets and flag broken or invalid targets.

Table of Contents

Methods

__construct()  : mixed
getCreationType()  : int
getDeleted()  : bool
getDisabled()  : bool
getForceHttps()  : bool
getIntegrityStatus()  : string|null
Be aware that this has been possible set by another earlier PSR-14 event listener already.
getIsRegExp()  : bool
getKeepQueryParameters()  : bool
getOriginalIntegrityStatus()  : string
getPid()  : int
getProtected()  : bool
getRedirect()  : array<string, string|int|float|null>
getRespectQueryParameters()  : bool
getSourceHost()  : string
getSourcePath()  : string
getTarget()  : string
getTargetStatusCode()  : int
getUid()  : int
setIntegrityStatus()  : void
Set the integrity status, could be one of the {@see RedirectConflict} constants, a custom value or `NULL`.

Methods

__construct()

public __construct(array<string, string|int|float|null> $redirect) : mixed
Parameters
$redirect : array<string, string|int|float|null>

getCreationType()

public getCreationType() : int
Return values
int

getDeleted()

public getDeleted() : bool
Return values
bool

getDisabled()

public getDisabled() : bool
Return values
bool

getForceHttps()

public getForceHttps() : bool
Return values
bool

getIntegrityStatus()

Be aware that this has been possible set by another earlier PSR-14 event listener already.

public getIntegrityStatus() : string|null

Could be any of the RedirectConflict constants, a custom value or NULL. In case of NULL no further handlinge are processed or regonized as conflict during the integrity checks.

This is not initialized with the sys_redirect.integirty_status value.

Return values
string|null

getIsRegExp()

public getIsRegExp() : bool
Return values
bool

getKeepQueryParameters()

public getKeepQueryParameters() : bool
Return values
bool

getOriginalIntegrityStatus()

public getOriginalIntegrityStatus() : string
Return values
string

getPid()

public getPid() : int
Return values
int

getProtected()

public getProtected() : bool
Return values
bool

getRedirect()

public getRedirect() : array<string, string|int|float|null>
Return values
array<string, string|int|float|null>

getRespectQueryParameters()

public getRespectQueryParameters() : bool
Return values
bool

getSourceHost()

public getSourceHost() : string
Return values
string

getSourcePath()

public getSourcePath() : string
Return values
string

getTarget()

public getTarget() : string
Return values
string

getTargetStatusCode()

public getTargetStatusCode() : int
Return values
int

getUid()

public getUid() : int
Return values
int

setIntegrityStatus()

Set the integrity status, could be one of the {@see RedirectConflict} constants, a custom value or `NULL`.

public setIntegrityStatus(string|null $integrityStatus) : void

In case of NULL no further handlinge are processed or regonized as conflict during the integrity checks.

Parameters
$integrityStatus : string|null

        
On this page

Search results