DataHandlerSlugUpdateHook

Internal

This class is a specific TYPO3 hook implementation and is not part of the Public TYPO3 API.

Table of Contents

Properties

$persistedSlugValues  : array<string|int, 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 array<string|int, string> $persistedSlugValues

Methods

processDatamap_postProcessFieldArray()

Acts on potential slug changes.

public processDatamap_postProcessFieldArray(string $status, string $table, mixed $id, array<string|int, mixed> $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<string|int, mixed>
$dataHandler : DataHandler

processDatamap_preProcessFieldArray()

Collects slugs of persisted records before having been updated.

public processDatamap_preProcessFieldArray(array<string|int, mixed> $incomingFieldArray, string $table, string|int $id, DataHandler $dataHandler) : void
Parameters
$incomingFieldArray : array<string|int, mixed>
$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

Search results