ModifyAutoCreateRedirectRecordBeforePersistingEvent
FinalYes
This event is fired in the \TYPO3\CMS\Redirects\Service\SlugService before a redirect record is persisted for changed page slug.
It can be used to modify the redirect record before persisting it. This gives extension developers the ability to apply defaults or add custom values to the record.
Table of Contents
Methods
- __construct() : mixed
- getRedirectRecord() : array<string|int, mixed>
- getSlugRedirectChangeItem() : SlugRedirectChangeItem
- getSource() : RedirectSourceInterface
- setRedirectRecord() : void
Methods
__construct()
public
__construct(SlugRedirectChangeItem $slugRedirectChangeItem, RedirectSourceInterface $source, array<string|int, mixed> $redirectRecord) : mixed
Parameters
- $slugRedirectChangeItem : SlugRedirectChangeItem
- $source : RedirectSourceInterface
- $redirectRecord : array<string|int, mixed>
getRedirectRecord()
public
getRedirectRecord() : array<string|int, mixed>
Return values
array<string|int, mixed>getSlugRedirectChangeItem()
public
getSlugRedirectChangeItem() : SlugRedirectChangeItem
Return values
SlugRedirectChangeItemgetSource()
public
getSource() : RedirectSourceInterface
Return values
RedirectSourceInterfacesetRedirectRecord()
public
setRedirectRecord(array<string|int, mixed> $redirectRecord) : void
Parameters
- $redirectRecord : array<string|int, mixed>