DataHandlerSlugUpdateHook

class \TYPO3\CMS\Redirects\Hooks\DataHandlerSlugUpdateHook

Table of Contents

Properties

$persistedSlugValues  : string[]
Persisted slug values per record UID e.g. `[13 => 'slug-a', 14 => 'slug-x/example']`
$slugService  : SlugService

Methods

__construct()  : mixed
processDatamap_postProcessFieldArray()  : void
Acts on potential slug changes.
processDatamap_preProcessFieldArray()  : void
Collects slugs of persisted records before having been updated.
isNestedHookInvocation()  : bool
Determines whether our identifier is part of correlation id aspects.

Properties

$persistedSlugValues

Persisted slug values per record UID e.g. `[13 => 'slug-a', 14 => 'slug-x/example']`

protected string[] $persistedSlugValues

Methods

processDatamap_postProcessFieldArray()

Acts on potential slug changes.

public processDatamap_postProcessFieldArray(string $status, string $table, mixed $id, array $fieldArray, DataHandler $dataHandler) : void

Hook processDatamap_postProcessFieldArray is executed after DataHandler::fillInFields which ensure access to pages.slug field and applies possible evaluations (eval => 'trim,...).

Parameters

$status : string
$table : string
$id : mixed
$fieldArray : array
$dataHandler : DataHandler

processDatamap_preProcessFieldArray()

Collects slugs of persisted records before having been updated.

public processDatamap_preProcessFieldArray(array $incomingFieldArray, string $table, string|int $id, DataHandler $dataHandler) : void

Parameters

$incomingFieldArray : array
$table : string
$id : string|int

(id could be string, for this reason no type hint)

$dataHandler : DataHandler

isNestedHookInvocation()

Determines whether our identifier is part of correlation id aspects.

protected isNestedHookInvocation(DataHandler $dataHandler) : bool

In that case it would be a nested call which has to be ignored.

Parameters

$dataHandler : DataHandler

Return values

bool
On this page