RedirectIntegrityCheckEvent
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
intgetDeleted()
public
getDeleted() : bool
Return values
boolgetDisabled()
public
getDisabled() : bool
Return values
boolgetForceHttps()
public
getForceHttps() : bool
Return values
boolgetIntegrityStatus()
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|nullgetIsRegExp()
public
getIsRegExp() : bool
Return values
boolgetKeepQueryParameters()
public
getKeepQueryParameters() : bool
Return values
boolgetOriginalIntegrityStatus()
public
getOriginalIntegrityStatus() : string
Return values
stringgetPid()
public
getPid() : int
Return values
intgetProtected()
public
getProtected() : bool
Return values
boolgetRedirect()
public
getRedirect() : array<string, string|int|float|null>
Return values
array<string, string|int|float|null>getRespectQueryParameters()
public
getRespectQueryParameters() : bool
Return values
boolgetSourceHost()
public
getSourceHost() : string
Return values
stringgetSourcePath()
public
getSourcePath() : string
Return values
stringgetTarget()
public
getTarget() : string
Return values
stringgetTargetStatusCode()
public
getTargetStatusCode() : int
Return values
intgetUid()
public
getUid() : int
Return values
intsetIntegrityStatus()
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